Improve log (#13696)

Signed-off-by: sunby <bingyi.sun@zilliz.com>

Co-authored-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
Bingyi Sun 2021-12-27 16:52:06 +08:00 committed by GitHub
parent 57ec25c246
commit 098516f3d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@ func (s *Server) QuitSignal() <-chan struct{} {
func (s *Server) Register() error {
s.session.Register()
go s.session.LivenessCheck(s.serverLoopCtx, func() {
log.Error("DataCoord disconnected from etcd, process will exit", zap.Int64("ServerID", s.session.ServerID))
log.Error("DataCoord disconnected from etcd and exited", zap.Int64("ServerID", s.session.ServerID))
if err := s.Stop(); err != nil {
log.Fatal("failed to stop server", zap.Error(err))
}