fixing code location switch
This commit is contained in:
@@ -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
|
||||
}),
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user