Log inconsistent error state

This commit is contained in:
Neil Alexander 2023-11-04 18:09:04 +00:00
parent 54660e629a
commit dc8705db54
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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) conn, err := l.connect(state.ctx, u, info, options)
if err != nil || conn == nil { 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 linkType == linkTypePersistent {
// If the link is a persistent configured peering, // If the link is a persistent configured peering,
// store information about the connection error so // store information about the connection error so