From 136cf252a134efe7d99f79d8622c43dbebbb5ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Thu, 18 Jan 2024 11:47:26 +0100 Subject: [PATCH] fix(api-gateway): add codetag metadata to error logs --- packages/api-gateway/bin/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/api-gateway/bin/server.ts b/packages/api-gateway/bin/server.ts index e50c881df..b8d3fe7f3 100644 --- a/packages/api-gateway/bin/server.ts +++ b/packages/api-gateway/bin/server.ts @@ -99,6 +99,7 @@ void container.load().then((container) => { const locals = response.locals as ResponseLocals logger.error(`${error.stack}`, { + codeTag: 'server.ts', method: request.method, url: request.url, snjs: request.headers['x-snjs-version'],