Skip to content

Commit

Permalink
Change logging level in expressLoggerMiddleware from info to debug fo…
Browse files Browse the repository at this point in the history
…r request and response
  • Loading branch information
austenstone committed Nov 27, 2024
1 parent d08a169 commit 570a939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/services/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const logger = bunyan.createLogger({
});

export const expressLoggerMiddleware = (req: Request, res: Response, next: NextFunction) => {
logger.info({ req }, 'request');
res.on('finish', () => logger.info({ res }, 'response'));
logger.debug(req);
res.on('finish', () => logger.debug(res));
next();
};

Expand Down

0 comments on commit 570a939

Please sign in to comment.