diff --git a/util/log.go b/util/log.go index 42e41ef5618..b3e13efaad5 100644 --- a/util/log.go +++ b/util/log.go @@ -40,7 +40,7 @@ func InitLog(logLevel string, logPath string) error { return "", fileName } - if level == log.DebugLevel { + if level > log.WarnLevel { log.SetReportCaller(true) }