* Fix loglevel parsing

* Bump dependencies

* Change --filter to --target

* Update documentation

* Import log handler as "loghandler"

* Change command color to purple

* Change flag name to target

* Update formatting
This commit is contained in:
2021-07-30 22:51:20 +02:00
committed by GitHub
parent a8399397e8
commit 4a0574554a
8 changed files with 55 additions and 28 deletions

View File

@@ -62,5 +62,11 @@ func initConfig() {
log.Fatal(err.Error())
}
}
log.SetLevelFromString(viper.GetString("loglevel"))
lvl, err := log.ParseLevel(viper.GetString("loglevel"))
if err != nil {
log.Fatalf("Couldn't parse log level: %s", err)
return
}
log.SetLevel(lvl)
}