remove winston-mail and winston-newrelic from deps as they may not be compatible with v2

This commit is contained in:
Matteo Pagliazzi
2015-11-03 18:10:42 +01:00
parent 182e4bff6f
commit cbca250b99
2 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -83,9 +83,7 @@
"swagger-node-express": "lefnire/swagger-node-express#habitrpg",
"universal-analytics": "~0.3.2",
"validator": "~3.19.0",
"winston": "~2.0.1",
"winston-mail": "~0.2.9",
"winston-newrelic": "~0.1.4"
"winston": "~2.0.1"
},
"private": true,
"engines": {
+2 -2
View File
@@ -1,6 +1,6 @@
var nconf = require('nconf');
var winston = require('winston');
require('winston-mail').Mail;
//require('winston-mail').Mail;
//require('winston-newrelic');
var logger, loggly;
@@ -26,7 +26,7 @@ if (logger == null) {
logger = new (winston.Logger)({});
if (nconf.get('NODE_ENV') == 'production') {
//logger.add(winston.transports.newrelic, {});
if (!nconf.get('DISABLE_ERROR_EMAILS')) {
if (!nconf.get('DISABLE_ERROR_EMAILS') && false) {
logger.add(winston.transports.Mail, {
to: nconf.get('ADMIN_EMAIL') || nconf.get('SMTP_USER'),
from: "HabitRPG <" + nconf.get('SMTP_USER') + ">",