Skip to content

Conversation

@shadowwalker
Copy link
Contributor

Use str.format to complete format string internally, this helps tenacity to be more compatible with other loggers such as loguru.

Without this PR the logging shows tenacity.before_sleep:log_it:41 - Retrying %s in %s seconds as it %s %s. when passing in logger from loguru.

@mergify
Copy link
Contributor

mergify bot commented Apr 22, 2021

⚠️ No release notes detected. Please make sure to use reno to add a changelog entry.

@asqui asqui mentioned this pull request Apr 25, 2021
jd
jd previously requested changes Apr 26, 2021
Copy link
Owner

@jd jd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this. Loguru not implementing the standard logging interface is their choice but making it paid by every library out there is not an option.

Since in that case, it's not too hard, I'd be ok with this. I'm just worried it'll be broken since there's no test and no easy way to add tests.

@mergify mergify bot dismissed jd’s stale review April 26, 2021 16:41

Pull request has been modified.

@shadowwalker shadowwalker requested a review from jd April 26, 2021 16:43
@jd
Copy link
Owner

jd commented Apr 26, 2021

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Apr 26, 2021

Command update: success

Branch has been successfully updated

@mergify mergify bot merged commit e493087 into jd:master Apr 26, 2021
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 this pull request may close these issues.

2 participants