diff --git a/logging.js b/logging.js index a0010e0..0e8b814 100644 --- a/logging.js +++ b/logging.js @@ -19,7 +19,7 @@ var logger = new winston.Logger({ exitOnError: false }); -if (process.env.NODE_ENV == 'production') { +if (process.env.NODE_ENV == 'production' && config.logdnaKey) { // Setup logging for LogDNA cloud logging. logger.add(winston.transports.Logdna, { level: 'info',