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

@@ -100,7 +100,7 @@ Analytics.writeData = function (callback) {
async.parallel(dbQueue, function (err) {
if (err) {
winston.error('[analytics] Encountered error while writing analytics to data store: ' + err.message);
winston.error('[analytics] Encountered error while writing analytics to data store', err);
}
callback(err);
});