Skip to content

Commit

Permalink
[ENG-596] Handle sentinel peer string error gracefully (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrbecker authored and wllmshao committed Mar 18, 2023
1 parent 4bec90e commit 58d338a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,11 @@ func NewNode(config *cfg.Config,
if sentinelPeerString != "" {
err = sw.SetSentinelPeer(sentinelPeerString)
if err != nil {
return nil, fmt.Errorf("could not add sentinel from sentinel_peer_string field: %w", err)
logger.Error(
"Error resolving IP from sentinel peer string. Trying again",
"err", err,
"sentinelPeerString", sentinelPeerString,
)
}
} else {
logger.Info("[node startup]: No sentinel_peer_string specified, not adding sentinel as peer")
Expand Down

0 comments on commit 58d338a

Please sign in to comment.