1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

fix: fixes start event to have correct time (#4294)

This commit is contained in:
Amir Raminfar
2025-12-14 08:39:46 -08:00
committed by GitHub
parent c199e1fa28
commit 1f712b56e0

View File

@@ -432,7 +432,7 @@ loop:
sseWriter.Message(logEvent)
case c := <-newContainers:
if _, err := h.hostService.FindContainer(c.Host, c.ID, userLabels); err == nil {
events <- &container.ContainerEvent{ActorID: c.ID, Name: "container-started", Host: c.Host}
events <- &container.ContainerEvent{ActorID: c.ID, Name: "container-started", Host: c.Host, Time: time.Now()}
go streamLogs(c)
}