Skip to content

Commit

Permalink
error handling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Jones committed Aug 27, 2024
1 parent 26b6cde commit 17b2fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ process.on('uncaughtException', (error) => {
subsegment.addError(error);
subsegment.close();
} else {
logger.error('AWS X-Ray subsegment is not available');
logger.info('AWS X-Ray subsegment is not available');
logger.error('Uncaught Exception:', formatError(error));
}
process.exit(1);
});
Expand Down

0 comments on commit 17b2fb6

Please sign in to comment.