Skip to content

Commit

Permalink
🚧 Update log middleware.
Browse files Browse the repository at this point in the history
  • Loading branch information
Toly committed Jun 18, 2024
1 parent 0974683 commit 5696ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/logger.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const loggerMiddleware = function (req, res, next) {
console.log(`-----------------------------------
|
| API: ${req.originalUrl} called. Method: ${req.method}
| API: ${req.originalUrl} called. Method: ${req.method}; Data: ${JSON.stringify(req.body)}
|
-----------------------------------
`);
Expand Down

0 comments on commit 5696ea1

Please sign in to comment.