From fa131e8ca14dec2dbc7fc4b3ea183f02e510c47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20W=C3=BCrbach?= Date: Tue, 20 Oct 2026 07:51:18 +0200 Subject: [PATCH] Ignore pion/ice "Failed to ping without candidate pairs" warning --- .changeset/pion-ice-ping-prefix.md | 6 ++++++ logger/pionlogger/logger.go | 1 + logger/pionlogger/logger_test.go | 7 +++++++ 3 files changed, 14 insertions(+) create mode 100644 .changeset/pion-ice-ping-prefix.md diff --git a/.changeset/pion-ice-ping-prefix.md b/.changeset/pion-ice-ping-prefix.md new file mode 100644 index 000000000..4b6871ada --- /dev/null +++ b/.changeset/pion-ice-ping-prefix.md @@ -0,0 +1,6 @@ +--- +"github.com/livekit/protocol": patch +"@livekit/protocol": patch +--- + +Ignore pion/ice "Failed to ping without candidate pairs" warning diff --git a/logger/pionlogger/logger.go b/logger/pionlogger/logger.go index 672f91c48..1fe614359 100644 --- a/logger/pionlogger/logger.go +++ b/logger/pionlogger/logger.go @@ -30,6 +30,7 @@ var ( pionIgnoredPrefixes = map[string]*prefixSet{ "ice": { "pingAllCandidates called with no candidate pairs", + "Failed to ping without candidate pairs", "failed to send packet: io: read/write on closed pipe", "Ignoring remote candidate with tcpType active", "discard message from", diff --git a/logger/pionlogger/logger_test.go b/logger/pionlogger/logger_test.go index 51951636b..4c4503437 100644 --- a/logger/pionlogger/logger_test.go +++ b/logger/pionlogger/logger_test.go @@ -30,3 +30,10 @@ func TestPrefixFilter(t *testing.T) { require.True(t, f["tcp_mux"].Match("error closing connection")) require.True(t, f["tcp_mux"].Match("test")) } + +func TestIgnoredPrefixes(t *testing.T) { + f := NewPrefixFilter(nil) + + require.True(t, f["ice"].Match("Failed to ping without candidate pairs. Connection is not possible yet.")) + require.False(t, f["ice"].Match("Failed to handle message")) +}