Skip to content

Commit

Permalink
selenium: update logging
Browse files Browse the repository at this point in the history
logging isn't that great right now
  • Loading branch information
naisanzaa committed Jul 27, 2024
1 parent 37fe843 commit 7efc6d9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions automon/integrations/seleniumWrapper/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 7efc6d9

Please sign in to comment.