Skip to content

Commit

Permalink
fix(back): remove duplicate 'HTTP' context in pino logs
Browse files Browse the repository at this point in the history
This results in named logger instances having two 'context' fields.
  • Loading branch information
tsa96 committed Jan 5, 2025
1 parent 77f145d commit 5f4520f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/backend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { pick } from '@momentum/util-fn';
LoggerModule.forRootAsync({
useFactory: async (config: ConfigService): Promise<PinoParams> => ({
pinoHttp: {
customProps: (_req, _res) => ({ context: 'HTTP' }),
level: config.getOrThrow('logLevel'),
// In dev mode, output human-readable strings using `pino-pretty`,
// filtering out most HTTP header noise.
Expand Down

0 comments on commit 5f4520f

Please sign in to comment.