feat: etcReadError

master
liuhaotian 2021-12-14 14:59:42 +08:00
parent 35d31821da
commit 9977fd1a16
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package consts package consts
const ( const (
EtcReadError = "etcdReaderErr"
EtcConnError = "etcConnectError" EtcConnError = "etcConnectError"
ErrorReason = "reason" ErrorReason = "reason"
PanicError = "panicError" PanicError = "panicError"

View File

@ -38,7 +38,7 @@ func etcdReader(env string) {
configMap[string(v.Key)] = string(v.Value) configMap[string(v.Key)] = string(v.Value)
} }
} else { } else {
ctxLogger.Error(nil, "etcdReaderErr", zap.String("reason", err.Error())) ctxLogger.Error(nil, consts.EtcReadError, zap.String("reason", err.Error()))
os.Exit(-1) os.Exit(-1)
} }
} }