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

This commit is contained in:
Karol Sójko
2023-11-10 10:32:47 +01:00
parent b55d80a7cd
commit 5d3fb9a537

View File

@@ -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,