From 288a2826ea2eb71e3b2797c6f5b364d3ce49ed9b Mon Sep 17 00:00:00 2001 From: zhangxin Date: Tue, 14 Sep 2021 10:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AF=BB=E5=8F=96=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/logger/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/logger/config.go b/infra/logger/config.go index ce9bec1..7cf251c 100644 --- a/infra/logger/config.go +++ b/infra/logger/config.go @@ -49,12 +49,12 @@ type outputSettings struct { func InitConfig() error { var err error - viper.SetConfigName("log_config") - viper.SetConfigType("yaml") baseDir, err := utils.GetCurrentPath("conf") if err != nil { return err } + viper.SetConfigName("log_config") + viper.SetConfigType("yaml") viper.AddConfigPath(baseDir) if err = viper.ReadInConfig(); err != nil { return err