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 dce20d9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cfnlint/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit dce20d9

Please sign in to comment.