From fcd6ebe0ee1c0971cdd02dca1b19f491b7905145 Mon Sep 17 00:00:00 2001 From: Spacetech <824323+Spacetech@users.noreply.github.com> Date: Sun, 18 May 2025 04:26:50 -0700 Subject: [PATCH] Use logger.debug for playwright console logs (#3201) --- changedetectionio/content_fetchers/playwright.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/content_fetchers/playwright.py b/changedetectionio/content_fetchers/playwright.py index 64a4a98f..bb8ade18 100644 --- a/changedetectionio/content_fetchers/playwright.py +++ b/changedetectionio/content_fetchers/playwright.py @@ -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