Skip to content

Commit

Permalink
PharmaLedger-IMI/epi-workspace#1076 global exception handler displays…
Browse files Browse the repository at this point in the history
… CRITICAL logs
  • Loading branch information
skutner committed Dec 5, 2022
1 parent 8effe9b commit 1cd15db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const logger = $$.getLogger("HttpServer", "apihub");

process.on('uncaughtException', err => {
logger.error('There was an uncaught error', err);
logger.critical('There was an uncaught error', err);
});

const httpWrapper = require('./libs/http-wrapper');
Expand Down

0 comments on commit 1cd15db

Please # to comment.