diff --git a/lib/logger.js b/lib/logger.js index e79b6b2..7ee376b 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -24,6 +24,11 @@ var Logger = module.exports = { var logger = Config.logging.logger, level = Config.logging.level || "info"; + // --debug CLI flag overrides any other option + if (_.includes(process.argv, "--debug")) { + level = "debug"; + } + logger = (logger == null) ? BasicLogger : logger; this.logger = logger || NullLogger;