1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

Don't send error logs as events

This commit is contained in:
Steffo 2019-09-10 13:30:13 +02:00
parent 8e898d301c
commit 57ac8b5579

View file

@ -5,6 +5,7 @@ import logging
import sentry_sdk
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
from sentry_sdk.integrations.aiohttp import AioHttpIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
from ..utils import *
from ..network import *
from ..database import *
@ -136,7 +137,9 @@ class GenericBot:
self.loop = loop
if sentry_dsn:
log.debug("Sentry integration enabled")
self.sentry = sentry_sdk.init(sentry_dsn, integrations=[AioHttpIntegration(), SqlalchemyIntegration()])
self.sentry = sentry_sdk.init(sentry_dsn, integrations=[AioHttpIntegration(),
SqlalchemyIntegration(),
LoggingIntegration(event_level=None)])
else:
log.debug("Sentry integration disabled")
try: