diff options
| author | 2023-11-25 22:01:47 +0000 | |
|---|---|---|
| committer | 2023-11-25 22:04:09 +0000 | |
| commit | 27a12e1994e80502a2608f35431d2a9df82a8b5a (patch) | |
| tree | 7996d90252b15a45b9c82797a55d52f4896630a0 /bot/__main__.py | |
| parent | Bump deps to latest (diff) | |
Use new logging util from bot-core
Diffstat (limited to 'bot/__main__.py')
| -rw-r--r-- | bot/__main__.py | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index 1b6b9f1e..bacb2fdd 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,20 +1,21 @@  import asyncio -import logging  import aiohttp  import discord  from async_rediscache import RedisSession  from discord.ext import commands  from pydis_core import StartupError +from pydis_core.utils.logging import get_logger  from redis import RedisError  import bot  from bot import constants  from bot.bot import Bot +from bot.log import setup_sentry  from bot.utils.decorators import whitelist_check -log = logging.getLogger(__name__) - +log = get_logger(__name__) +setup_sentry()  async def _create_redis_session() -> RedisSession:      """Create and connect to a redis session."""  |