Skip to content

Commit

Permalink
🔊 Added env, distribution, commit to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachid F committed Jun 18, 2024
1 parent 9a81687 commit 2a06a78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2a06a78

Please sign in to comment.