mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
feat: display stack trace on winston.error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user