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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user