From b7602c6e80b1ab1621e6adc83ef4427edbdd4128 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 3 Feb 2015 21:04:31 -0500 Subject: [PATCH] removed winston.err --- app.js | 5 ----- src/controllers/accounts.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app.js b/app.js index fb757a497d..acb1a3baca 100644 --- a/app.js +++ b/app.js @@ -46,11 +46,6 @@ winston.add(winston.transports.Console, { level: global.env === 'production' ? 'info' : 'verbose' }); -// TODO: remove once https://github.com/flatiron/winston/issues/280 is fixed -winston.err = function (err) { - winston.error(err.stack); -}; - if(os.platform() === 'linux') { require('child_process').exec('/usr/bin/which convert', function(err, stdout, stderr) { if(err || !stdout) { diff --git a/src/controllers/accounts.js b/src/controllers/accounts.js index c55977a351..84b0f96ad5 100644 --- a/src/controllers/accounts.js +++ b/src/controllers/accounts.js @@ -466,7 +466,7 @@ accountsController.uploadPicture = function (req, res, next) { fs.unlink(absolutePath, function (err) { if (err) { - winston.err(err); + winston.error(err); } file.saveFileToLocal(filename, 'profile', userPhoto.path, done);