Set report caller when info or higher (#555)

This commit is contained in:
Maycon Santos
2022-11-08 10:56:13 +01:00
committed by GitHub
parent f37b43a542
commit 7d7e576775

View File

@ -40,7 +40,7 @@ func InitLog(logLevel string, logPath string) error {
return "", fileName return "", fileName
} }
if level == log.DebugLevel { if level > log.WarnLevel {
log.SetReportCaller(true) log.SetReportCaller(true)
} }