mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
allow debug mode from ENV or config.
This commit is contained in:
parent
ac7200c630
commit
46c05aa49f
@ -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")).
|
||||
|
Loading…
Reference in New Issue
Block a user