Use proto logger to get named enums in the logs. (#4679)

This commit is contained in:
Raja Subramanian
2026-07-16 23:50:13 +05:30
committed by GitHub
parent 38d7efca83
commit 8c14a617f5
2 changed files with 12 additions and 13 deletions
+1 -2
View File
@@ -770,14 +770,13 @@ func (t *TransportManager) handleConnectionFailed(isShortLived bool) {
return
}
lastSignalSince := time.Since(t.lastSignalAt)
signalValid := t.signalSourceValid.Load()
if !t.hasRecentSignalLocked() || !signalValid {
// the failed might cause by network interrupt because signal closed or we have not seen any signal in the time window,
// so don't switch to next candidate type
t.params.Logger.Debugw(
"ignoring prefer candidate check by ICE failure because signal connection interrupted",
"lastSignalSince", lastSignalSince,
"sinceLastSignal", time.Since(t.lastSignalAt),
"signalValid", signalValid,
)
t.failureCount = 0