Skip to content

Log with error level instead of debug when reaching max retry times #3171

@ariasuni

Description

@ariasuni

There’s no easy/not hackish way to log an error when reaching max retry times with standard scrapy RetryMiddleware. It’s useful for me to be able to see right away if a page I tried to crawl has not been downloaded.

I think it’s sensible to change this line to log to error level instead:

logger.debug("Gave up retrying %(request)s (failed %(retries)d times): %(reason)s",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions