Skip to content

Commit

Permalink
FormatCaller comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-r-warren committed Oct 27, 2023
1 parent 88f1767 commit a591e4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sherlock/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func configureLogging(infoMessages ...string) {
if Config.String("mode") == "debug" {
// Colored text for CLI
output := zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.Kitchen}
// If the call-site of the log message is included, format it nicely for human consumption
output.FormatCaller = func(i interface{}) string {
if i == nil {
return ""
Expand Down

0 comments on commit a591e4e

Please sign in to comment.