Skip to content

Commit

Permalink
Merge pull request etcd-io#17314 from ahrtr/configure_peer_log_20240124
Browse files Browse the repository at this point in the history
Print error log when creating peer listener failed
  • Loading branch information
ahrtr authored Jan 25, 2024
2 parents d1cc01a + 362f0a2 commit f932c00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/embed/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,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'
Expand Down

0 comments on commit f932c00

Please sign in to comment.