Avoid logging binary junk for frame write failure

This commit is contained in:
Jordan Liggitt 2024-02-29 15:09:34 -05:00
parent 7ec1e1a55e
commit fc86811cbe
No known key found for this signature in database

View File

@ -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
}
}