reduce log level for channel closed error when writing signal message (#3361)

* reduce log level for channel closed error when writing signal message

* tidy
This commit is contained in:
Paul Wells
2025-01-22 04:33:47 -08:00
committed by GitHub
parent 9fca20066f
commit f435c5cb62
+2 -2
View File
@@ -15,7 +15,6 @@
package rtc package rtc
import ( import (
"errors"
"fmt" "fmt"
"time" "time"
@@ -23,6 +22,7 @@ import (
"github.com/livekit/protocol/livekit" "github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger" "github.com/livekit/protocol/logger"
"github.com/livekit/protocol/utils"
"github.com/livekit/psrpc" "github.com/livekit/psrpc"
"github.com/livekit/livekit-server/pkg/routing" "github.com/livekit/livekit-server/pkg/routing"
@@ -331,7 +331,7 @@ func (p *ParticipantImpl) writeMessage(msg *livekit.SignalResponse) error {
} }
err := sink.WriteMessage(msg) err := sink.WriteMessage(msg)
if errors.Is(err, psrpc.Canceled) { if utils.ErrorIsOneOf(err, psrpc.Canceled, routing.ErrChannelClosed) {
p.params.Logger.Debugw( p.params.Logger.Debugw(
"could not send message to participant", "could not send message to participant",
"error", err, "error", err,