浏览代码

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

Karol Sójko 1 年之前
父节点
当前提交
5d3fb9a537
共有 1 个文件被更改,包括 3 次插入0 次删除
  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
+    this.logger.info(
+      `Calling websockets service: ${endpointOrMethodIdentifier}. Format is minimal: ${isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat}`,
+    )
     if (isARequestComingFromApiGatewayAndShouldBeKeptInMinimalFormat) {
       await this.callServerWithLegacyFormat(
         this.webSocketServerUrl,