chore: fix viper regression
This commit is contained in:
parent
564be8dbde
commit
dc6f035f50
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ import (
|
|||
// parseLogLevels parses --log area:level[,...] switch into levels per log area
|
||||
func parseLogLevels() {
|
||||
levels := viper.GetStringMapString("levels")
|
||||
if levels == nil {
|
||||
levels = make(map[string]string)
|
||||
}
|
||||
|
||||
var level string
|
||||
for _, kv := range strings.Split(viper.GetString("log"), ",") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue