Skip to content

Commit

Permalink
Remove error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Dec 6, 2024
1 parent bf666d1 commit 88730b9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ redisClient.on('ready', () => {
const statsPerpsVolumeRouter = require('./routes/stats/perps-volume.js');
app.use('/stats/perps-volume', statsPerpsVolumeRouter);

app.use(function errorHandler(err, req, res, next) {
console.error(err);
if (res.headersSent) {
return next(err);
}
res.status(500);
res.json({ error: err.message });
});
// app.use(function errorHandler(err, req, res, next) {
// console.error(err);
// if (res.headersSent) {
// return next(err);
// }
// res.status(500);
// res.json({ error: err.message });
// });

log.debug('[Express] Starting server..');
const port =
Expand Down

0 comments on commit 88730b9

Please sign in to comment.