update dependencies (#6519)

Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
hongming
2025-05-29 15:51:37 +08:00
committed by GitHub
parent 281b2091a5
commit 4d88ed2ca1
2573 changed files with 171946 additions and 52199 deletions

View File

@@ -29,7 +29,7 @@ var (
// GetLogger provides a prefix debug logger
func GetLogger(prefix string, debug bool) func(string, ...interface{}) {
if debug {
logger := log.New(output, fmt.Sprintf("%s:", prefix), log.LstdFlags)
logger := log.New(output, prefix+":", log.LstdFlags)
return func(msg string, args ...interface{}) {
_, file1, pos1, _ := runtime.Caller(1)
@@ -37,5 +37,5 @@ func GetLogger(prefix string, debug bool) func(string, ...interface{}) {
}
}
return func(msg string, args ...interface{}) {}
return func(_ string, _ ...interface{}) {}
}