From 2a06a782b9c2eab9bfdc9017b55ae4748a534179 Mon Sep 17 00:00:00 2001 From: Rachid F Date: Tue, 18 Jun 2024 13:03:35 +0200 Subject: [PATCH] :loud_sound: Added env, distribution, commit to logging --- packages/api/src/app.module.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/api/src/app.module.ts b/packages/api/src/app.module.ts index 61859e9d6..3ca3ac301 100644 --- a/packages/api/src/app.module.ts +++ b/packages/api/src/app.module.ts @@ -54,6 +54,9 @@ import { PrismaModule } from '@@core/prisma/prisma.module'; pinoHttp: { customProps: (req, res) => ({ context: 'HTTP', + env: process.env.ENV, + distribution: process.env.DISTRIBUTION, + commit_id: process.env.QOVERY_APPLICATION_Z6E264DA1_GIT_COMMIT_ID, }), transport: process.env.ENV === 'prod'