fix: do some housework
This commit is contained in:
@ -65,9 +65,10 @@ func initConfig() {
|
||||
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
log.ErrorLog("Failed to read viper configuration file", "err", err)
|
||||
return
|
||||
}
|
||||
|
||||
log.InfoLog("Using config file", "file", viper.ConfigFileUsed())
|
||||
log.DebugLog("Using config file", "file", viper.ConfigFileUsed())
|
||||
}
|
||||
|
||||
// logOptions set log options from the configs read by viper.
|
||||
|
Reference in New Issue
Block a user