From 6fd9e1fe1d865bbc1b170d8ffc6170c23267a628 Mon Sep 17 00:00:00 2001 From: Jan Hutar Date: Fri, 5 Jan 2024 08:17:51 +0100 Subject: [PATCH] feat: Really make these silent. This is terible solution, but works for me for now --- core/opl/skelet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/opl/skelet.py b/core/opl/skelet.py index 3017f9a..975c66b 100644 --- a/core/opl/skelet.py +++ b/core/opl/skelet.py @@ -24,11 +24,11 @@ def setup_logger(app_name, stderr_log_lvl): # Silence loggers of some chatty libraries we use urllib_logger = logging.getLogger("urllib3.connectionpool") - urllib_logger.setLevel(stderr_log_lvl) + urllib_logger.setLevel(logging.WARNING) selenium_logger = logging.getLogger("selenium.webdriver.remote.remote_connection") - selenium_logger.setLevel(stderr_log_lvl) + selenium_logger.setLevel(logging.WARNING) kafka_logger = logging.getLogger("kafka") - kafka_logger.setLevel(stderr_log_lvl) + kafka_logger.setLevel(logging.WARNING) # Add stderr handler, with provided level console_handler = logging.StreamHandler()