Provide more error information to logs

Provides full stack instead of just message
This commit is contained in:
Peter Jaszkowiak
2017-11-01 18:58:44 -06:00
parent ec38b18e34
commit e609e497b3
21 changed files with 59 additions and 60 deletions

View File

@@ -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);
});