mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
Provide more error information to logs
Provides full stack instead of just message
This commit is contained in:
@@ -396,7 +396,7 @@ Notifications.prune = function (callback) {
|
||||
},
|
||||
], function (err) {
|
||||
if (err) {
|
||||
winston.error('Encountered error pruning notifications: ' + err.message);
|
||||
winston.error('Encountered error pruning notifications', err);
|
||||
}
|
||||
callback(err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user