Wednesday 27 October 2021

How to catch python warnings with sentry?

With sentry_sdk, the sentry documentation explain how to automatically catch exceptions or logging messages. However, how can I catch a python warning, like a DeprecationWarning that would be raised with

warnings.warn(DeprecationWarning, "warning message")


from How to catch python warnings with sentry?

No comments:

Post a Comment