mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-16 13:17:19 +02:00
cmd/ctrld: use Windscribe fork of zerolog
For supporting default log level notice. While at it, also fix a missing os.Exit call when setup router on non-supported platforms.
This commit is contained in:
committed by
Cuong Manh Le
parent
e3a792d50d
commit
24100c4cbe
+2
-2
@@ -70,7 +70,7 @@ func initConsoleLogging() {
|
||||
case verbose > 1:
|
||||
zerolog.SetGlobalLevel(zerolog.DebugLevel)
|
||||
default:
|
||||
zerolog.SetGlobalLevel(zerolog.WarnLevel)
|
||||
zerolog.SetGlobalLevel(zerolog.NoticeLevel)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ func initLogging() {
|
||||
// TODO: find a better way.
|
||||
ctrld.ProxyLog = mainLog
|
||||
|
||||
zerolog.SetGlobalLevel(zerolog.WarnLevel)
|
||||
zerolog.SetGlobalLevel(zerolog.NoticeLevel)
|
||||
logLevel := cfg.Service.LogLevel
|
||||
switch {
|
||||
case verbose == 1:
|
||||
|
||||
Reference in New Issue
Block a user