fix: do some housework

This commit is contained in:
Muyao CHEN
2024-10-02 22:48:27 +02:00
parent 62597e4534
commit 608f435fb1
5 changed files with 5 additions and 8 deletions

View File

@ -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.