fix: Print event data, not whole struct

This commit is contained in:
Krypton 2025-07-14 21:46:35 +02:00
commit 183837e216

View file

@ -137,7 +137,7 @@ func (mod *EventsStream) Render(output io.Writer, e session.Event) {
} else if strings.HasPrefix(e.Tag, "zeroconf.") { } else if strings.HasPrefix(e.Tag, "zeroconf.") {
mod.viewZeroConfEvent(output, e) mod.viewZeroConfEvent(output, e)
} else if !strings.HasPrefix(e.Tag, "tick") && e.Tag != "session.started" && e.Tag != "session.stopped" { } else if !strings.HasPrefix(e.Tag, "tick") && e.Tag != "session.started" && e.Tag != "session.stopped" {
fmt.Fprintf(output, "[%s] [%s] %v\n", e.Time.Format(mod.timeFormat), tui.Green(e.Tag), e) fmt.Fprintf(output, "[%s] [%s] %v\n", e.Time.Format(mod.timeFormat), tui.Green(e.Tag), e.Data)
} }
} }