1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-12 22:41:07 +02:00

Fix util/log/log.Infof format didn't work (#2160)

Co-authored-by: Cui Gang <cuigang@yunpbx.com>
This commit is contained in:
Cui Gang
2021-05-06 13:43:05 +08:00
committed by GitHub
parent 1b5d372b5b
commit 9e9157d878

View File

@ -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