From 6ecd5bf6d73f8579f2b94fea820f70510e504dda Mon Sep 17 00:00:00 2001 From: Cecylia Bocovich Date: Thu, 28 Nov 2024 12:13:24 -0500 Subject: [PATCH] Remove log when offer is nil After !414, we started returning a nil offer from pollOffer if the proxy was not matched with a client. It's not longer an indication of failure, so we should remove the "bad offer from broker" log message. --- proxy/lib/snowflake.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/lib/snowflake.go b/proxy/lib/snowflake.go index ef5e3dd..fd93f68 100644 --- a/proxy/lib/snowflake.go +++ b/proxy/lib/snowflake.go @@ -30,7 +30,6 @@ import ( "crypto/rand" "encoding/base64" "fmt" - "github.com/pion/ice/v4" "io" "log" "net" @@ -40,6 +39,8 @@ import ( "sync" "time" + "github.com/pion/ice/v4" + "github.com/gorilla/websocket" "github.com/pion/transport/v3/stdnet" "github.com/pion/webrtc/v4" @@ -611,7 +612,6 @@ func (sf *SnowflakeProxy) makeNewPeerConnection( func (sf *SnowflakeProxy) runSession(sid string) { offer, relayURL := broker.pollOffer(sid, sf.ProxyType, sf.RelayDomainNamePattern) if offer == nil { - log.Printf("bad offer from broker") tokens.ret() return }