blob: e1959c16ca6435b46934665e0dae269ea8937ad3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import logging
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from nonebot.log import LoguruHandler
scheduler = AsyncIOScheduler(timezone="Asia/Shanghai")
aps_logger = logging.getLogger("apscheduler")
aps_logger.setLevel(logging.DEBUG)
aps_logger.handlers.clear()
aps_logger.addHandler(LoguruHandler())
|