Use logger.debug for playwright console logs (#3201)

This commit is contained in:
Spacetech
2025-05-18 04:26:50 -07:00
committed by GitHub
parent c162ec9d52
commit fcd6ebe0ee

View File

@@ -186,7 +186,7 @@ class fetcher(Fetcher):
self.page = context.new_page()
# Listen for all console events and handle errors
self.page.on("console", lambda msg: print(f"Playwright console: Watch URL: {url} {msg.type}: {msg.text} {msg.args}"))
self.page.on("console", lambda msg: logger.debug(f"Playwright console: Watch URL: {url} {msg.type}: {msg.text} {msg.args}"))
# Re-use as much code from browser steps as possible so its the same
from changedetectionio.blueprint.browser_steps.browser_steps import steppable_browser_interface