mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
Provide more error information to logs
Provides full stack instead of just message
This commit is contained in:
@@ -45,7 +45,7 @@ Digest.execute = function (payload, callback) {
|
||||
},
|
||||
], function (err, count) {
|
||||
if (err) {
|
||||
winston.error('[user/jobs] Could not send digests (' + payload.interval + '): ' + err.message);
|
||||
winston.error('[user/jobs] Could not send digests (' + payload.interval + ')', err);
|
||||
} else {
|
||||
winston.info('[user/jobs] Digest (' + payload.interval + ') scheduling completed. ' + count + ' email(s) sent.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user