Skip to content

Commit

Permalink
logging: increase pre-argparse logging level to WARNING (#9629)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzorin committed Mar 27, 2023
1 parent 8037321 commit a16f316
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion certbot/certbot/_internal/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def pre_arg_parse_setup() -> None:

stream_handler = ColoredStreamHandler()
stream_handler.setFormatter(logging.Formatter(CLI_FMT))
stream_handler.setLevel(constants.QUIET_LOGGING_LEVEL)
# The pre-argparse logging level is set to WARNING here. This is to ensure that
# deprecated flags (see DeprecatedArgumentAction) print something to the terminal.
# See https://github.com/certbot/certbot/issues/9618.
stream_handler.setLevel(logging.WARNING)

root_logger = logging.getLogger()
root_logger.setLevel(logging.DEBUG) # send all records to handlers
Expand Down

0 comments on commit a16f316

Please sign in to comment.