diff --git a/pkg/cmds/commands.go b/pkg/cmds/commands.go index a43f292f..d20ee704 100644 --- a/pkg/cmds/commands.go +++ b/pkg/cmds/commands.go @@ -96,7 +96,7 @@ Toggles on and off the printing of code locations in logs. `)), Default: "false", }, func(o *toggle.Opt) (err error) { - log2.LogCodeLocations(o.Value().Bool()) + log2.CodeLocations(o.Value().Bool()) return }), diff --git a/pkg/log/log.go b/pkg/log/log.go index c2fa6d0a..aa21656b 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -202,7 +202,7 @@ func SetLogLevel(l LogLevel) { logLevel = l } -func LogCodeLocations(on bool) { +func CodeLocations(on bool) { writerMx.Lock() defer writerMx.Unlock() codeLoc = on