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
const (
EtcReadError = "etcdReaderErr"
EtcConnError = "etcConnectError"
ErrorReason = "reason"
PanicError = "panicError"

View File

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