diff --git a/src/cfnlint/config.py b/src/cfnlint/config.py index 5ecee1ec2b..1319f3cc22 100644 --- a/src/cfnlint/config.py +++ b/src/cfnlint/config.py @@ -30,14 +30,16 @@ def configure_logging(debug_logging, info_logging): ch = logging.StreamHandler() - ch.setLevel(logging.DEBUG) if debug_logging: LOGGER.setLevel(logging.DEBUG) + ch.setLevel(logging.DEBUG) elif info_logging: LOGGER.setLevel(logging.INFO) + ch.setLevel(logging.INFO) else: LOGGER.setLevel(logging.NOTSET) + ch.setLevel(logging.WARNING) log_formatter = logging.Formatter( "%(asctime)s - %(name)s - %(levelname)s - %(message)s" )