diff --git a/libraries/logger/logging-manager.js b/libraries/logger/logging-manager.js index 06b439b097..705a8ff3b3 100644 --- a/libraries/logger/logging-manager.js +++ b/libraries/logger/logging-manager.js @@ -13,7 +13,7 @@ const LoggingManager = { this.isProduction = (process.env.NODE_ENV || '').toLowerCase() === 'production' this.defaultLevel = - process.env.LOG_LEVEL || (this.isProduction ? 'warn' : 'debug') + process.env.LOG_LEVEL || (this.isProduction ? 'info' : 'debug') this.loggerName = name this.logger = bunyan.createLogger({ name, diff --git a/libraries/logger/test/unit/logging-manager-tests.js b/libraries/logger/test/unit/logging-manager-tests.js index b62d8ea63d..6539693268 100644 --- a/libraries/logger/test/unit/logging-manager-tests.js +++ b/libraries/logger/test/unit/logging-manager-tests.js @@ -90,9 +90,9 @@ describe('LoggingManager', function () { delete process.env.NODE_ENV }) - it('should default to log level warn', function () { + it('should default to log level info', function () { this.Bunyan.createLogger.firstCall.args[0].streams[0].level.should.equal( - 'warn' + 'info' ) })