lib: improve sentry integration

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-18 11:29:36 +02:00
parent 2498e72f5d
commit bc6aef7af2

View file

@ -89,6 +89,13 @@ def before_send(event: dict, hint: dict) -> Optional[dict]:
if isinstance(exc_value, ignored_classes): if isinstance(exc_value, ignored_classes):
return None return None
if "logger" in event: if "logger" in event:
if event["logger"] in ["dbbackup", "botocore"]: if event["logger"] in [
"dbbackup",
"botocore",
"kombu",
"asyncio",
"multiprocessing",
"django_redis",
]:
return None return None
return event return event