From fc86811cbe8fd030b1402a7f060b168771100a70 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Thu, 29 Feb 2024 15:09:34 -0500 Subject: [PATCH] Avoid logging binary junk for frame write failure --- .../k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go b/staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go index 7cfdd063217..8a741936a3d 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go @@ -344,7 +344,7 @@ func (conn *Conn) handle(ws *websocket.Conn) { continue } if _, err := conn.channels[channel].DataFromSocket(data); err != nil { - klog.Errorf("Unable to write frame to %d: %v\n%s", channel, err, string(data)) + klog.Errorf("Unable to write frame (%d bytes) to %d: %v", len(data), channel, err) continue } }