mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
since logger.error tries to use sentry in typical setups, using that to report trouble with sentry is not a good idea
14 lines
431 B
Python
14 lines
431 B
Python
import logging
|
|
from sentry_sdk.transport import HttpTransport
|
|
|
|
|
|
# the lazy choice: I've already got loggers set up for bugsink; I'll just use them. Better would be: just use "sentry"
|
|
logger = logging.getLogger("bugsink.sentry")
|
|
|
|
|
|
class MoreLoudlyFailingTransport(HttpTransport):
|
|
def on_dropped_event(self, reason):
|
|
# type: (str) -> None
|
|
# ... do you thing ...
|
|
print("Sentry SDK dropped event:", reason)
|