Skip to content

Commit

Permalink
Add req.body to telegram logger
Browse files Browse the repository at this point in the history
  • Loading branch information
denizyesilirmak committed Dec 17, 2023
1 parent 6b4a3be commit 4618ec7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewares/loger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const loger = (req: Request, res: Response, next: NextFunction) => {
${req.originalUrl}
${req.ip}
${req.get('user-agent')}
${req.body}
`;

TelegramService.sendMessage(msg);
Expand Down

0 comments on commit 4618ec7

Please sign in to comment.