Skip to content

Commit

Permalink
✨ Env var to control Axiom activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachid F committed Jun 17, 2024
1 parent 9a81687 commit 4af5339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ redis_data
.pnpm-store/
.npmrc
.vscode
ngrok.yml
2 changes: 1 addition & 1 deletion packages/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import { PrismaModule } from '@@core/prisma/prisma.module';
context: 'HTTP',
}),
transport:
process.env.ENV === 'prod'
process.env.AXIOM_AGENT_STATUS === 'ENABLED'
? {
target: '@axiomhq/pino',
options: {
Expand Down

0 comments on commit 4af5339

Please sign in to comment.