Skip to content

Commit

Permalink
Add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard committed Apr 28, 2024
1 parent 71c69f5 commit ca16dea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ app.get("/liquidator_readiness_check", (req, res) => {
app.use(Sentry.Handlers.errorHandler());
// Catch 404 and send our own error message (instead of the default Express one)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
app.use((_req: Request, res: Response, _next: NextFunction) => {
app.use((req: Request, res: Response, _next: NextFunction) => {
console.log(req.ip, req.method, req.path, "Not found");
res.status(404).send("Not found");
});
// Catch all other errors and sennd our own error message (instead of the default Express one)
Expand Down

0 comments on commit ca16dea

Please sign in to comment.