🔊 force aiocache to use standard logger

This commit is contained in:
StarHeartHunt 2021-08-08 10:05:42 +08:00
parent ceebe0e95d
commit 7b3d66cd2a

View File

@ -1,3 +1,12 @@
import logging
from nonebot.log import LoguruHandler, logger
aiocache_logger = logging.getLogger("aiocache.serializers.serializers")
aiocache_logger.setLevel(logging.DEBUG)
aiocache_logger.handlers.clear()
aiocache_logger.addHandler(LoguruHandler())
from .bot import Bot
from .event import *
from .event import Event