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:
parent
8e898d301c
commit
57ac8b5579
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue