I’ve been using `tenacity` for python retry logic and it’s a game-changer. Super clean with decorators, and you can tweak stuff like backoff, max retries, and even conditional retries (like only retry on 503 errors).
For logging, I set it to log only on final failure—avoids spam but still gives debug info.
Check out their docs, it’s pretty straightforward: [tenacity GitHub](https://github.com/jd/tenacity).
Also, +1 for not reinventing the wheel—custom while loops always end up messy.
For logging, I set it to log only on final failure—avoids spam but still gives debug info.
Check out their docs, it’s pretty straightforward: [tenacity GitHub](https://github.com/jd/tenacity).
Also, +1 for not reinventing the wheel—custom while loops always end up messy.
