Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function name to retry log message #9

Open
msoedov opened this issue Sep 26, 2016 · 0 comments · May be fixed by #10
Open

Add function name to retry log message #9

msoedov opened this issue Sep 26, 2016 · 0 comments · May be fixed by #10

Comments

@msoedov
Copy link

msoedov commented Sep 26, 2016

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

@orivej orivej linked a pull request Oct 2, 2016 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant