fix(plugin): 移除插件配置同步调用并增强错误日志
在插件管理器中,移除了加载插件时对已废弃的配置同步方法的调用。 同时,为了更好地排查 `maizone` 插件发送动态失败的问题,增强了其命令的异常日志,现在会额外记录异常类型。
This commit is contained in:
@@ -106,8 +106,6 @@ class PluginManager:
|
||||
if not plugin_dir:
|
||||
return False, 1
|
||||
|
||||
# 同步插件配置
|
||||
self._synchronize_plugin_config(plugin_name, plugin_dir)
|
||||
|
||||
plugin_instance = plugin_class(plugin_dir=plugin_dir) # 实例化插件(可能因为缺少manifest而失败)
|
||||
if not plugin_instance:
|
||||
|
||||
@@ -53,6 +53,6 @@ class SendFeedCommand(PlusCommand):
|
||||
return False, result.get("message", "未知错误"), True
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"执行发送说说命令时发生未知异常: {e}", exc_info=True)
|
||||
logger.error(f"执行发送说说命令时发生未知异常: {e},它的类型是:{type(e)}", exc_info=True)
|
||||
await self.send_text("呜... 发送过程中好像出了点问题。")
|
||||
return False, "命令执行异常", True
|
||||
|
||||
Reference in New Issue
Block a user