From 7efc6d969a0f5a233414ae5e31919b50d55e9476 Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Fri, 26 Jul 2024 21:47:32 -0700 Subject: [PATCH] selenium: update logging logging isn't that great right now --- automon/integrations/seleniumWrapper/browser.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/automon/integrations/seleniumWrapper/browser.py b/automon/integrations/seleniumWrapper/browser.py index 2e35776a..4bd4feeb 100644 --- a/automon/integrations/seleniumWrapper/browser.py +++ b/automon/integrations/seleniumWrapper/browser.py @@ -132,10 +132,8 @@ def keys(self): return selenium.webdriver.common.keys.Keys async def refresh(self) -> None: - self.webdriver.refresh() - logger.info(dict( - refresh=self.current_url - )) + logger.debug(f'refreshing page: {self.current_url=}') + return self.webdriver.refresh() @property def url(self): @@ -682,8 +680,8 @@ async def run(self) -> bool: async def save_cookies_for_current_url(self) -> bool: filename = await self._url_filename(url=self.url) logger.debug(dict( - save_cookies_for_current_url=filename, - url=self.url, + save_cookies_for_current_url=self.url, + filename=filename, )) return await self.save_cookies_to_file(file=filename)