Skip to content

Commit

Permalink
Fix log level getting overwritten by empty config
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Apr 18, 2020
1 parent af1f22e commit 49eaa8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Expand Up @@ -164,7 +164,8 @@ func run(cmd *cobra.Command, args []string) {

// load config and re-configure logging after reading config file
conf := loadConfigFile(cfgFile)
configureLogging(conf.Log)
level, _ = cmd.PersistentFlags().GetString("log")
configureLogging(level)

go checkVersion()

Expand Down

0 comments on commit 49eaa8f

Please sign in to comment.