mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
typo: 优化插件执行日志信息
This commit is contained in:
parent
91b5100a24
commit
b2f6e84adc
|
@ -140,7 +140,7 @@ class PluginManager:
|
||||||
for plugin in self.plugins:
|
for plugin in self.plugins:
|
||||||
if plugin.enabled:
|
if plugin.enabled:
|
||||||
if event.__class__ in plugin.event_handlers:
|
if event.__class__ in plugin.event_handlers:
|
||||||
self.ap.logger.debug(f'插件 {plugin.plugin_name} 触发事件 {event.__class__.__name__}')
|
self.ap.logger.debug(f'插件 {plugin.plugin_name} 处理事件 {event.__class__.__name__}')
|
||||||
|
|
||||||
is_prevented_default_before_call = ctx.is_prevented_default()
|
is_prevented_default_before_call = ctx.is_prevented_default()
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ class PluginManager:
|
||||||
ctx
|
ctx
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.ap.logger.error(f'插件 {plugin.plugin_name} 触发事件 {event.__class__.__name__} 时发生错误: {e}')
|
self.ap.logger.error(f'插件 {plugin.plugin_name} 处理事件 {event.__class__.__name__} 时发生错误: {e}')
|
||||||
self.ap.logger.debug(f"Traceback: {traceback.format_exc()}")
|
self.ap.logger.debug(f"Traceback: {traceback.format_exc()}")
|
||||||
|
|
||||||
emitted_plugins.append(plugin)
|
emitted_plugins.append(plugin)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user