Skip to content

Commit e349fc0

Browse files
committed
fear: add logging for debugging
1 parent f9a767e commit e349fc0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/server.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ app.use((req, res, next) => {
4040
}
4141
});
4242

43-
// // Add request logging middleware for debugging
44-
// app.use((req, res, next) => {
45-
// console.log(`${req.method} ${req.path}`, {
46-
// body: req.body,
47-
// headers: req.headers,
48-
// query: req.query
49-
// });
50-
// next();
51-
// });
43+
// Add request logging middleware for debugging
44+
app.use((req, res, next) => {
45+
console.log(`${req.method} ${req.path}`, {
46+
body: req.body,
47+
headers: req.headers,
48+
query: req.query
49+
});
50+
next();
51+
});
5252

5353
// Error handling middleware for JSON parsing
5454
app.use(((error: any, req: express.Request, res: express.Response, next: express.NextFunction) => {

0 commit comments

Comments
 (0)