调整日志内容

This commit is contained in:
liuwei
2025-03-19 15:24:00 +08:00
parent d5b71ff5bd
commit ea6eecc3b0
5 changed files with 10 additions and 11 deletions

View File

@@ -69,7 +69,6 @@ class StatsCollectorPlugin(PluginInterface):
self.event_manager.register(PluginCallEndEvent, self.handle_plugin_call_end)
self.event_manager.register(PluginCallErrorEvent, self.handle_plugin_error)
self.logger.info("统计收集插件已初始化")
return True
def handle_plugin_call_start(self, event: PluginCallStartEvent) -> None:
@@ -158,12 +157,12 @@ class StatsCollectorPlugin(PluginInterface):
def start(self) -> bool:
"""启动插件"""
self.LOG.info(f"[{self.name}] 插件已启动")
self.status = PluginStatus.RUNNING
self.LOG.info(f"{self.name} 插件已启动")
return True
def stop(self) -> bool:
"""停止插件"""
self.LOG.info(f"[{self.name}] 插件已停止")
self.status = PluginStatus.STOPPED
self.LOG.info(f"{self.name} 插件已停止")
return True