Skip to content

Commit

Permalink
Avoid logging binary junk for frame write failure
Browse files Browse the repository at this point in the history
Kubernetes-commit: d7258c313581ae095a867ca09b0787e692d89867
  • Loading branch information
liggitt authored and k8s-publishing-bot committed Feb 29, 2024
1 parent 3e7c65a commit 801d824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/httpstream/wsstream/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 801d824

Please sign in to comment.