From 6ddb27625a2b23f74b6d0616e533bd08d59517ff Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=9B=B4=E6=96=B0=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E6=8F=92=E4=BB=B6=E6=97=A5=E5=BF=97=E4=B8=AD=E7=9A=84?= =?UTF-8?q?f-string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新全部插件功能中,移除了日志记录中的f-string,简化了日志消息的格式。这个更改可能是为了统一日志记录的风格或者减少不必要的字符串格式化操作。 --- zhenxun/builtin_plugins/plugin_store/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zhenxun/builtin_plugins/plugin_store/__init__.py b/zhenxun/builtin_plugins/plugin_store/__init__.py index 5eb1a1cb..06e0b481 100644 --- a/zhenxun/builtin_plugins/plugin_store/__init__.py +++ b/zhenxun/builtin_plugins/plugin_store/__init__.py @@ -159,9 +159,9 @@ async def _(session: EventSession): await MessageUtils.build_message("正在更新全部插件").send() result = await ShopManage.update_all_plugin() except Exception as e: - logger.error(f"更新全部插件失败", "插件商店", session=session, e=e) + logger.error("更新全部插件失败", "插件商店", session=session, e=e) await MessageUtils.build_message( f"更新全部插件失败 e: {e}" ).finish() - logger.info(f"更新全部插件", "插件商店", session=session) + logger.info("更新全部插件", "插件商店", session=session) await MessageUtils.build_message(result).send() \ No newline at end of file