From 5d3fb9a537f6971cfe8ae3c5ea449806cc4de8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 10 Nov 2023 10:32:47 +0100 Subject: [PATCH] fix(api-gateway): add logs about calling web sockets with minimal format --- packages/api-gateway/src/Service/Http/HttpServiceProxy.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/api-gateway/src/Service/Http/HttpServiceProxy.ts b/packages/api-gateway/src/Service/Http/HttpServiceProxy.ts index 50d7120a5..ad18fab3e 100644 --- a/packages/api-gateway/src/Service/Http/HttpServiceProxy.ts +++ b/packages/api-gateway/src/Service/Http/HttpServiceProxy.ts @@ -144,6 +144,9 @@ export class HttpServiceProxy implements ServiceProxyInterface { } const isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat = request.headers.connectionid !== undefined + this.logger.info( + `Calling websockets service: ${endpointOrMethodIdentifier}. Format is minimal: ${isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat}`, + ) if (isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat) { await this.callServerWithLegacyFormat( this.webSocketServerUrl,