From 9e9157d878dcb7844dd1a7b83d1490d2e776eab2 Mon Sep 17 00:00:00 2001 From: Cui Gang Date: Thu, 6 May 2021 13:43:05 +0800 Subject: [PATCH] Fix util/log/log.Infof format didn't work (#2160) Co-authored-by: Cui Gang --- util/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/log/log.go b/util/log/log.go index 18fcfa15..8f919442 100644 --- a/util/log/log.go +++ b/util/log/log.go @@ -117,7 +117,7 @@ func Logf(format string, v ...interface{}) { if len(prefix) > 0 { format = prefix + " " + format } - nlog.DefaultLogger.Log(levelToLevel(level), format, v) + nlog.DefaultLogger.Logf(levelToLevel(level), format, v) } // WithLevel logs with the level specified