From 926d0227bdb870f2885eb33178956cf7703187e4 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Wed, 24 Jan 2024 13:50:38 +0000 Subject: [PATCH] print error log when creating peer listener failed Signed-off-by: Benjamin Wang --- server/embed/etcd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/embed/etcd.go b/server/embed/etcd.go index c26f4f30d7b..ffa35286704 100644 --- a/server/embed/etcd.go +++ b/server/embed/etcd.go @@ -533,6 +533,7 @@ func configurePeerListeners(cfg *Config) (peers []*peerListener, err error) { transport.WithTimeout(rafthttp.ConnReadTimeout, rafthttp.ConnWriteTimeout), ) if err != nil { + cfg.logger.Error("creating peer listener failed", zap.Error(err)) return nil, err } // once serve, overwrite with 'http.Server.Shutdown'