Skip to content

Commit

Permalink
fix: log stack trace in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fredriklindberg committed Aug 31, 2023
1 parent 0c7c1a4 commit 861fd9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/listener/http-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class HttpListener extends ListenerInterface {
}
} catch (e) {
this.logger.error(e.message);
this.logger.debug(e.stack);
ctx.res.statusCode = 500;
ctx.res.end();
}
Expand Down

0 comments on commit 861fd9f

Please sign in to comment.