Skip to content

Commit

Permalink
log tunnel status at Trace
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDoanRivian committed Oct 14, 2024
1 parent ceac503 commit dd474aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connection_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ func (n *connectionManager) makeTrafficDecision(localIndex uint32, now time.Time
// A hostinfo is determined alive if there is incoming traffic
if inTraffic {
decision := doNothing
if n.l.Level >= logrus.DebugLevel {
if n.l.Level >= logrus.TraceLevel {
hostinfo.logger(n.l).
WithField("tunnelCheck", m{"state": "alive", "method": "passive"}).
Debug("Tunnel status")
Trace("Tunnel status")
}
delete(n.pendingDeletion, hostinfo.localIndexId)

Expand Down Expand Up @@ -401,10 +401,10 @@ func (n *connectionManager) makeTrafficDecision(localIndex uint32, now time.Time
n.sendPunch(hostinfo)
}

if n.l.Level >= logrus.DebugLevel {
if n.l.Level >= logrus.TraceLevel {
hostinfo.logger(n.l).
WithField("tunnelCheck", m{"state": "testing", "method": "active"}).
Debug("Tunnel status")
Trace("Tunnel status")
}

// Send a test packet to trigger an authenticated tunnel test, this should suss out any lingering tunnel issues
Expand Down

0 comments on commit dd474aa

Please sign in to comment.