Skip to content

Commit

Permalink
Report log level
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Nov 3, 2023
1 parent 2f2bc2e commit c0bd3a5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/meters_to_ha/meters_to_ha.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c0bd3a5

Please sign in to comment.