feat: display stack trace on winston.error

This commit is contained in:
Barış Soner Uşaklı
2020-06-20 23:32:12 -04:00
parent 55f8f99bcd
commit e80379dc0e
31 changed files with 43 additions and 44 deletions

View File

@@ -326,7 +326,7 @@ Notifications.prune = async function () {
}, { batch: 500, interval: 100 });
} catch (err) {
if (err) {
winston.error('Encountered error pruning notifications', err);
winston.error('Encountered error pruning notifications', err.stack);
}
}
};