Skip to content

Commit

Permalink
[DEBUG] log whether the threaded loop is started
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed Jul 25, 2024
1 parent be4a011 commit 147db94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scrapy_playwright/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ def __init__(self, crawler: Crawler) -> None:
self.config = Config.from_settings(crawler.settings)

if self.config.use_threaded_loop:
logger.warning("Starting threaded loop")

Check warning on line 145 in scrapy_playwright/handler.py

View check run for this annotation

Codecov / codecov/patch

scrapy_playwright/handler.py#L145

Added line #L145 was not covered by tests
_ThreadedLoopAdapter.start(id(self))
else:
logger.warning("NOT starting threaded loop")

self.browser_launch_lock = asyncio.Lock()
self.context_launch_lock = asyncio.Lock()
Expand Down

0 comments on commit 147db94

Please sign in to comment.