Browse Source

fix(api-gateway): add logs about calling web sockets with minimal format

Karol Sójko 1 year ago
parent
commit
5d3fb9a537
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/api-gateway/src/Service/Http/HttpServiceProxy.ts

+ 3 - 0
packages/api-gateway/src/Service/Http/HttpServiceProxy.ts

@@ -144,6 +144,9 @@ export class HttpServiceProxy implements ServiceProxyInterface {
     }
     }
 
 
     const isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat = request.headers.connectionid !== undefined
     const isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat = request.headers.connectionid !== undefined
+    this.logger.info(
+      `Calling websockets service: ${endpointOrMethodIdentifier}. Format is minimal: ${isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat}`,
+    )
     if (isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat) {
     if (isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat) {
       await this.callServerWithLegacyFormat(
       await this.callServerWithLegacyFormat(
         this.webSocketServerUrl,
         this.webSocketServerUrl,