Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
ammsalme committed Nov 5, 2024
1 parent 11c36fa commit 33316b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export default async function ({middlewareOptions, httpPort, oracleUsername, ora

// Express requires next to be present for the error handler to work, even if that argument is not used
function handleError(err, req, res, next) { // eslint-disable-line no-unused-vars
logger.debug(`HandleError: ${err.message}`);

// The correct way would be to throw if the error is unexpected...There is a race condition between the request aborted event handler and running async function.
/* istanbul ignore if: Not easily tested */
if (req.aborted) {
Expand Down

0 comments on commit 33316b1

Please sign in to comment.