lib: improve sentry integration
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
2498e72f5d
commit
bc6aef7af2
|
@ -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
|
||||||
|
|
Reference in a new issue