Skip to content

Commit

Permalink
Add extra request logging
Browse files Browse the repository at this point in the history
  • Loading branch information
malee31 committed Dec 8, 2024
1 parent 9972880 commit 4d1a3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let router = initialRouter;

// Allows for swapping out the router in use during runtime
app.use((req, res, next) => {
console.log(req.url)
console.log(`[${req.method}] ${req.url} | ${req.ip} | ${req.headers["user-agent"]}`);
return router(req, res, next);
});

Expand Down

0 comments on commit 4d1a3b0

Please sign in to comment.