Skip to content

Commit

Permalink
Small change to logging of unhandled rejections
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiher committed Sep 18, 2024
1 parent 942bd08 commit d796849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Server {
* @see https://nodejs.org/api/process.html#event-unhandledrejection
*/
process.on('unhandledRejection', async (reason, promise) => {
await Logger.fatal(`[Server] Unhandled rejection: ${reason}, promise:`, util.format('%O', promise))
await Logger.fatal('[Server] Unhandled rejection:', reason, '\npromise:', util.format('%O', promise))
process.exit(1)
})
}
Expand Down

0 comments on commit d796849

Please sign in to comment.