mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
make unhandled promise rejections easier to find among logs
This commit is contained in:
parent
2ccd9eaa1e
commit
a864e69042
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ let loggerInterface = {
|
|||
// Logs unhandled promises errors
|
||||
// when no catch is attached to a promise a unhandledRejection event will be triggered
|
||||
process.on('unhandledRejection', function handlePromiseRejection (reason) {
|
||||
loggerInterface.error(reason);
|
||||
loggerInterface.error('unhandledPromiseRejection', reason);
|
||||
});
|
||||
|
||||
module.exports = loggerInterface;
|
||||
|
|
|
|||
Loading…
Reference in a new issue