diff --git a/conf/config.go b/conf/config.go index 67cdf20..2f7e403 100644 --- a/conf/config.go +++ b/conf/config.go @@ -64,6 +64,12 @@ func Init() { log.Info("├%21s: %v", v, vi.Get(v)) } } + + if DebugMode() { + log.SetLogLevel(4) + } else { + log.SetLogLevel(3) + } } func writeCfg() {