Skip to content

Commit

Permalink
Playwright: Add some debug loggings when starting browsers.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Feb 22, 2024
1 parent 9b71697 commit 507ff46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions locust_plugins/users/playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ async def _pwprep(self):
if self.playwright is None:
self.playwright = await async_playwright().start()
if self.browser is None:
logging.debug(f"About to start a {self.browser_type} browser")
if self.browser_type == "firefox":
self.browser = await self.playwright.firefox.launch(
headless=self.headless or self.headless is None and self.environment.runner is not None,
Expand Down Expand Up @@ -334,6 +335,7 @@ async def _pwprep(self):
)
else:
raise Exception(f"Unknown browser type specified: {self.browser_type}")
logging.debug("browser startup finished")


class PlaywrightScriptUser(PlaywrightUser):
Expand Down

0 comments on commit 507ff46

Please sign in to comment.