Demote some logs. (#2523)

When a fallback is not applied, it is due to signal interruption.
ICE connection failing happens. And every time there is error, it is due
to "no selected pair".

Move all of it to `Debugw`. `setting ICE config` is the definitive log
which says if a different ICE config was applied.
This commit is contained in:
Raja Subramanian
2024-02-28 12:11:40 +05:30
committed by GitHub
parent 098b12981f
commit 6519c7596a
2 changed files with 9 additions and 12 deletions
+1 -7
View File
@@ -603,14 +603,8 @@ func (t *PCTransport) handleConnectionFailed(forceShortConn bool) {
isShort, duration = t.IsShortConnection(time.Now())
if isShort {
pair, err := t.getSelectedPair()
if err != nil {
t.params.Logger.Warnw("short ICE connection", err, "duration", duration)
} else {
t.params.Logger.Infow("short ICE connection", "pair", pair, "duration", duration)
}
t.params.Logger.Debugw("short ICE connection", "error", err, "pair", pair, "duration", duration)
}
} else {
t.params.Logger.Infow("force short ICE connection")
}
t.params.Handler.OnFailed(isShort)