chore(proxy): Reduce noisy error logs (#6136)

This commit is contained in:
April-May authored and GitHub committed 2025-10-10 08:43:40 -07:00
1 parent dc25c1aadd
commit 003007aaa3
1 file changed
+9 -1
+9 -1
View File
@@ -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
}