From ce9e3a0657f577af0344703bfd58a729ec36461a Mon Sep 17 00:00:00 2001 From: gshuflin Date: Tue, 21 Jul 2020 13:47:11 -0700 Subject: [PATCH] Remove use of "quiet" in logging init (#10417) ### Problem A small bit of code in `init/logging.py` branches based on the value of the "quiet" option, even though this option has been removed. ### Solution Remove that branching. --- src/python/pants/init/logging.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/python/pants/init/logging.py b/src/python/pants/init/logging.py index 8c96a7ba3b4..162106c194c 100644 --- a/src/python/pants/init/logging.py +++ b/src/python/pants/init/logging.py @@ -128,14 +128,13 @@ def setup_logging(global_bootstrap_options): ignores = global_bootstrap_options.ignore_pants_warnings global_level = global_bootstrap_options.level - level = LogLevel.ERROR if getattr(global_bootstrap_options, "quiet", False) else global_level log_dir = global_bootstrap_options.logdir log_show_rust_3rdparty = global_bootstrap_options.log_show_rust_3rdparty use_color = global_bootstrap_options.colors - init_rust_logger(level, log_show_rust_3rdparty, use_color) - setup_logging_to_stderr(level, warnings_filter_regexes=ignores) + init_rust_logger(global_level, log_show_rust_3rdparty, use_color) + setup_logging_to_stderr(global_level, warnings_filter_regexes=ignores) if log_dir: setup_logging_to_file(global_level, log_dir=log_dir, warnings_filter_regexes=ignores)