From a16f316b8fe32366543dc4abb8e043dc1ba7a537 Mon Sep 17 00:00:00 2001 From: alexzorin Date: Tue, 28 Mar 2023 05:12:18 +1100 Subject: [PATCH] logging: increase pre-argparse logging level to WARNING (#9629) --- certbot/certbot/_internal/log.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/certbot/certbot/_internal/log.py b/certbot/certbot/_internal/log.py index 0aa33df6b..ab3384fc7 100644 --- a/certbot/certbot/_internal/log.py +++ b/certbot/certbot/_internal/log.py @@ -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