mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
allow debug mode from ENV or config.
This commit is contained in:
@@ -104,6 +104,11 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
// debug mode from ENV or config
|
||||
if viper.GetBool("debug") {
|
||||
zerolog.SetGlobalLevel(zerolog.DebugLevel)
|
||||
}
|
||||
|
||||
file := viper.ConfigFileUsed()
|
||||
logger := log.With().
|
||||
Bool("debug", viper.GetBool("debug")).
|
||||
|
||||
Reference in New Issue
Block a user