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):