向nonebot对齐了一下日志输出

This commit is contained in:
2026-07-05 18:40:09 +08:00
parent 737249b0d7
commit 1663c1945d
2 changed files with 16 additions and 2 deletions
+5 -1
View File
@@ -1,5 +1,5 @@
import nonebot
from nonebot import require
from nonebot import require, logger
require("nonebot_plugin_apscheduler")
@@ -19,6 +19,10 @@ def startup():
rlib.set_proxy(pconfig.proxy)
if pconfig.github_token:
rlib.set_ghp(pconfig.github_token)
try:
rlib.set_log_level(logger._core.extra.get("nonebot_log_level", "INFO"))
except Exception as e:
logger.error(f"设置日志等级失败: {e}")
rlib.boot(str(Path.cwd()), "nonebot_plugin_sekai_update_notify", pconfig.assets_studio_path)
scheduler.add_job(sync, "interval", seconds=10, id="sekai_update_sync", replace_existing=True)