diff --git a/lib/common/relay/forwardWebsocketRequest.ts b/lib/common/relay/forwardWebsocketRequest.ts index e5ce26d07..1031e7f93 100644 --- a/lib/common/relay/forwardWebsocketRequest.ts +++ b/lib/common/relay/forwardWebsocketRequest.ts @@ -160,7 +160,7 @@ export const forwardWebSocketRequest = ( emit = legacyOverrideEmit; } - const simplifiedContext = logContext; + const simplifiedContext = structuredClone(logContext); delete simplifiedContext.requestHeaders; logger.info( simplifiedContext,