From 02c90093c0c9f41a00e7c0bf70e50b5ce807b01e Mon Sep 17 00:00:00 2001 From: jiangyanjun <278251091@qq.com> Date: Thu, 23 Feb 2023 15:25:36 +0800 Subject: [PATCH] fix glog env --- glog/v1/logger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glog/v1/logger.go b/glog/v1/logger.go index 6daf62b..1c8a94f 100644 --- a/glog/v1/logger.go +++ b/glog/v1/logger.go @@ -35,9 +35,9 @@ func NewLogger(c *LoggerConfig) (log.Logger, func()) { switch c.Env { default: l = NewStdLogger(os.Stdout) - case enum.EnvLocal: + case enum.Env_Local.String(): l = NewStdLogger(os.Stdout) - case enum.EnvDevelop, enum.EnvPre, enum.EnvProduct: + case enum.Env_Develop.String(), enum.Env_Preview.String(), enum.Env_Production.String(): l = NewAliyunLog( WithAccessKey(c.AliLogConfig.AccessKey), WithAccessSecret(c.AliLogConfig.AccessSecret),