Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture warnings and report to sentry (#5697)
By default, warnings are simply printed to stderr. This makes them easy to miss in the log. Capture warnings and user Python logger to log them with warning level. Also, if the message is an instance of Exception (which it typically is), report the warning to Sentry. This is e.g. useful for asyncio RuntimeWarning warnings "coroutine was never awaited".
- Loading branch information