From 05e71ce53a18dde1609aedeb963859fa484f2dea Mon Sep 17 00:00:00 2001 From: Antoine Arlaud Date: Wed, 31 Jul 2024 22:00:20 -0400 Subject: [PATCH] fix: restore headers in debug logcontext --- lib/common/relay/forwardWebsocketRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,