Skip to content

Commit

Permalink
Update logging configuration to not when used by a library
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Jul 8, 2024
1 parent 5bc91ce commit 5af49a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cfnlint/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 5af49a9

Please sign in to comment.