remove winston-mail and winston-newrelic from deps as they may not be compatible with v2
This commit is contained in:
+1
-3
@@ -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": {
|
||||
|
||||
@@ -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') + ">",
|
||||
|
||||
Reference in New Issue
Block a user