Skip to content

Commit

Permalink
fix(application-generic): Exclude health-checks from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed May 16, 2024
1 parent ab4f052 commit 10ee2ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/application-generic/src/logging/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NestInterceptor } from '@nestjs/common';
import { NestInterceptor, RequestMethod } from '@nestjs/common';
import {
LoggerErrorInterceptor,
Logger,
Expand Down Expand Up @@ -108,6 +108,7 @@ export function createNestLoggingModuleOptions(
);

return {
exclude: [{ path: '*/health-check', method: RequestMethod.GET }],
pinoHttp: {
customLevels: loggingLevelSet,
level: values.level,
Expand Down

0 comments on commit 10ee2ca

Please sign in to comment.