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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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