Skip to content

Commit

Permalink
Logging adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed Jul 6, 2024
1 parent 44ceb92 commit af1bc97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapy_playwright/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ async def _download_request_with_page(
await _set_redirect_meta(request=request, response=response)
headers = Headers(await response.all_headers())
headers.pop("Content-Encoding", None)
else:
elif not download.get("bytes"):
logger.warning(
"Navigating to %s returned None, the response"
" will have empty headers and status 200",
Expand Down Expand Up @@ -482,7 +482,7 @@ async def _handle_response(response: PlaywrightResponse) -> None:
raise

logger.debug(
"Navigating to %s failed, waiting on dowload to start",
"Navigating to %s failed",
request.url,
extra={
"spider": spider,
Expand Down

0 comments on commit af1bc97

Please sign in to comment.