fix: correct event handler registration in plugins

Fixed incorrect event handler registration in two plugins:

- Statistics plugin was calling Step instead of Stop on StopEvent,
  preventing statistics from being printed at the end of execution.
- Logs plugin was listening to StopEvent instead of StepEvent,
  causing it to only log once at the end instead of on each step.
This commit is contained in:
2026-01-13 19:34:29 -05:00
parent 307b7ffd1e
commit ef5b94545f
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ func NewStatistics(process *engine.Engine) *Statistics {
plugin := &Statistics{}
process.On(engine.StartEvent, plugin.Start)
process.On(engine.StepEvent, plugin.Step)
process.On(engine.StopEvent, plugin.Step)
process.On(engine.StopEvent, plugin.Stop)
return plugin
}