mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-23 01:27:13 +02:00
cmd/ctrld: change default log level to warn
This commit is contained in:
+5
-2
@@ -86,9 +86,12 @@ func initLogging() {
|
|||||||
// TODO: find a better way.
|
// TODO: find a better way.
|
||||||
ctrld.ProxyLog = mainLog
|
ctrld.ProxyLog = mainLog
|
||||||
|
|
||||||
zerolog.SetGlobalLevel(zerolog.InfoLevel)
|
zerolog.SetGlobalLevel(zerolog.WarnLevel)
|
||||||
logLevel := cfg.Service.LogLevel
|
logLevel := cfg.Service.LogLevel
|
||||||
if verbose > 1 {
|
switch {
|
||||||
|
case verbose == 1:
|
||||||
|
logLevel = "info"
|
||||||
|
case verbose > 1:
|
||||||
logLevel = "debug"
|
logLevel = "debug"
|
||||||
}
|
}
|
||||||
if logLevel == "" {
|
if logLevel == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user