向nonebot对齐了一下日志输出
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user