fixing code location switch

This commit is contained in:
David Vennik
2023-01-09 00:09:03 +00:00
parent 7657f42529
commit be777eebb5
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}),

View File

@@ -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