feat: etcReadError
parent
35d31821da
commit
9977fd1a16
|
@ -1,6 +1,7 @@
|
|||
package consts
|
||||
|
||||
const (
|
||||
EtcReadError = "etcdReaderErr"
|
||||
EtcConnError = "etcConnectError"
|
||||
ErrorReason = "reason"
|
||||
PanicError = "panicError"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue