This commit is contained in:
W192547975
2023-11-23 13:12:14 +08:00
parent c3956c5182
commit 181c04971c
2 changed files with 2 additions and 2 deletions

View File

@@ -299,7 +299,7 @@ func parseParams(name string, arguments []string) {
gConf.Network.UDPPort2 = UDPPort2
gLog.setLevel(LogLevel(gConf.LogLevel))
if *notVerbose {
gLog.setMode(gLog.Mode() &^ LogConsole)
gLog.setMode(gLog.mode() &^ LogConsole)
}
// gConf.mtx.Unlock()
gConf.save()

View File

@@ -97,7 +97,7 @@ func (l *logger) setMode(mode int) {
defer l.mtx.Unlock()
l.mode = mode
}
func (l *logger) Mode() int {
func (l *logger) mode() int {
l.mtx.Lock()
defer l.mtx.Unlock()
return l.mode