diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py index 5ecee1ec2b..5f24321eb6 100644 --- a/src/cfnlint/config.py +++ b/src/cfnlint/config.py @@ -37,15 +37,12 @@ def configure_logging(debug_logging, info_logging): elif info_logging: LOGGER.setLevel(logging.INFO) else: - LOGGER.setLevel(logging.NOTSET) + LOGGER.setLevel(logging.WARNING) log_formatter = logging.Formatter( "%(asctime)s - %(name)s - %(levelname)s - %(message)s" ) ch.setFormatter(log_formatter) - # make sure all other log handlers are removed before adding it back - for handler in LOGGER.handlers: - LOGGER.removeHandler(handler) LOGGER.addHandler(ch)