diff --git a/core/logs/log.go b/core/logs/log.go index d5953dfb..2c1b4dd1 100644 --- a/core/logs/log.go +++ b/core/logs/log.go @@ -764,9 +764,7 @@ func formatLog(f interface{}, v ...interface{}) string { if len(v) == 0 { return msg } - if strings.Contains(msg, "%") && !strings.Contains(msg, "%%") { - // format string - } else { + if !strings.Contains(msg, "%") { // do not contain format char msg += strings.Repeat(" %v", len(v)) }