Skip to content

Commit

Permalink
Set report caller when info or higher (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon authored Nov 8, 2022
1 parent f37b43a commit 7d7e576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func InitLog(logLevel string, logPath string) error {
return "", fileName
}

if level == log.DebugLevel {
if level > log.WarnLevel {
log.SetReportCaller(true)
}

Expand Down

0 comments on commit 7d7e576

Please sign in to comment.