Fix log level getting overwritten by empty config
This commit is contained in:
parent
af1f22e8b7
commit
49eaa8f140
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue