fix(api-gateway): add codetag metadata to error logs

This commit is contained in:
Karol Sójko 2024-01-18 11:47:26 +01:00
parent cad28ebba5
commit 136cf252a1
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -99,6 +99,7 @@ void container.load().then((container) => {
const locals = response.locals as ResponseLocals const locals = response.locals as ResponseLocals
logger.error(`${error.stack}`, { logger.error(`${error.stack}`, {
codeTag: 'server.ts',
method: request.method, method: request.method,
url: request.url, url: request.url,
snjs: request.headers['x-snjs-version'], snjs: request.headers['x-snjs-version'],