From c0bd3a55f430d3cd01057ebbf7e5ac481c1a72bb Mon Sep 17 00:00:00 2001 From: MDW Date: Fri, 3 Nov 2023 22:51:28 +0100 Subject: [PATCH] Report log level --- apps/meters_to_ha/meters_to_ha.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/meters_to_ha/meters_to_ha.py b/apps/meters_to_ha/meters_to_ha.py index c03e69c..c5beb98 100755 --- a/apps/meters_to_ha/meters_to_ha.py +++ b/apps/meters_to_ha/meters_to_ha.py @@ -727,10 +727,16 @@ def init_chromium(self): self.configuration[PARAM_LOGS_FOLDER], "chromedriver.log", ) + log_level = self.get_log_level() chromium_service_args = ( - ["--verbose"] if self.get_log_level() < logging.INFO else None + ["--verbose"] if log_level < logging.INFO else None ) + self.mylog( + f"LOG {self.configuration[PARAM_LOG_LEVEL]}" + f":{log_level}:{logging.INFO}", + end="", + ) self.mylog("Start the browser", end="") try: if "chromium" in inspect.getmembers(webdriver):