mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Install aiohttp and sqlalchemy integration
This commit is contained in:
parent
d4bcd61f2c
commit
8e898d301c
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@ import typing
|
|||
import asyncio
|
||||
import logging
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||
from sentry_sdk.integrations.aiohttp import AioHttpIntegration
|
||||
from ..utils import *
|
||||
from ..network import *
|
||||
from ..database import *
|
||||
|
@ -134,7 +136,7 @@ class GenericBot:
|
|||
self.loop = loop
|
||||
if sentry_dsn:
|
||||
log.debug("Sentry integration enabled")
|
||||
self.sentry = sentry_sdk.init(sentry_dsn)
|
||||
self.sentry = sentry_sdk.init(sentry_dsn, integrations=[AioHttpIntegration(), SqlalchemyIntegration()])
|
||||
else:
|
||||
log.debug("Sentry integration disabled")
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue