legacy: fix logging.

This commit is contained in:
Miroslav Šedivý 2025-04-06 16:19:40 +02:00
parent 6c5cd1260d
commit b8bfcaf4bf

View file

@ -181,9 +181,9 @@ func (h *LegacyHandler) Route(r types.Router) {
var message string
select {
case err = <-errClient:
message = "websocketproxy: Error when copying from backend to client: %v"
message = "websocketproxy: Error when copying from backend to client"
case err = <-errBackend:
message = "websocketproxy: Error when copying from client to backend: %v"
message = "websocketproxy: Error when copying from client to backend"
}
if e, ok := err.(*websocket.CloseError); !ok || e.Code == websocket.CloseAbnormalClosure {