From 003007aaa3a138abdd73302fccf07274410a6c50 Mon Sep 17 00:00:00 2001 From: April-May <18632637+AprilMay0@users.noreply.github.com> Date: Fri, 10 Oct 2025 08:43:40 -0700 Subject: [PATCH] chore(proxy): Reduce noisy error logs (#6136) --- internal/daemon/worker/handler.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/internal/daemon/worker/handler.go b/internal/daemon/worker/handler.go index a0d0691166..96781d6aaa 100644 --- a/internal/daemon/worker/handler.go +++ b/internal/daemon/worker/handler.go @@ -283,7 +283,15 @@ func (w *Worker) handleProxy(listenerCfg *listenerutil.ListenerConfig, sessionMa runProxy, err := handleProxyFn(ctx, ctx, decryptFn, cc, pDialer, acResp.GetConnectionId(), protocolCtx, w.recorderManager, proxyHandlers.WithLogger(w.logger)) if err != nil { conn.Close(proxyHandlers.WebsocketStatusProtocolSetupError, "unable to setup proxying") - event.WriteError(ctx, op, err) + + switch { + case errors.Match(errors.T(errors.WindowsRDPClientEarlyDisconnection), err): + // This is known behavior with Windows Remote Desktop clients and does not + // indicate a problem with the worker or the proxy. + // There is no need to log an error event here. + default: + event.WriteError(ctx, op, err) + } return }