fix glog env

master
parent 1b58396db5
commit 02c90093c0
  1. 4
      glog/v1/logger.go

@ -35,9 +35,9 @@ func NewLogger(c *LoggerConfig) (log.Logger, func()) {
switch c.Env { switch c.Env {
default: default:
l = NewStdLogger(os.Stdout) l = NewStdLogger(os.Stdout)
case enum.EnvLocal: case enum.Env_Local.String():
l = NewStdLogger(os.Stdout) 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( l = NewAliyunLog(
WithAccessKey(c.AliLogConfig.AccessKey), WithAccessKey(c.AliLogConfig.AccessKey),
WithAccessSecret(c.AliLogConfig.AccessSecret), WithAccessSecret(c.AliLogConfig.AccessSecret),

Loading…
Cancel
Save