Skip to content

Add function name to retry log message #9

@msoedov

Description

@msoedov

A typical error message in logs looks like this which I found a little bit confusing

 [WARNING] [retry.api:40] Expecting value: line 1 column 1 (char 0), retrying in 2 seconds...

However it's really hard to figure out where it's happening. Especially if you dealing with couple of dozen's function's/method wrapped by @retry decorator.

The suggestion is following: Either include function name to log message (fn.__name__) or use optional name keyword argument from kwargs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions