Skip to content

Commit

Permalink
Log inconsistent error state
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Nov 4, 2023
1 parent 54660e6 commit dc8705d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error {

conn, err := l.connect(state.ctx, u, info, options)
if err != nil || conn == nil {
if err == nil && conn == nil {
l.core.log.Warnf("Link %q reached inconsistent error state", u.String())
}
if linkType == linkTypePersistent {
// If the link is a persistent configured peering,
// store information about the connection error so
Expand Down

0 comments on commit dc8705d

Please sign in to comment.