From 5af49a94c11eb9f73fc60c46a5ad60cb1d895288 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Mon, 8 Jul 2024 12:13:53 -0700 Subject: [PATCH] Update logging configuration to not when used by a library --- src/cfnlint/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" )