feat(logs): include hook information in log entry formatting

This commit is contained in:
Pasha Sviderski committed 2026-04-22 13:55:42 +10:00
1 parent 303c8e4506
commit 56a54ab3fd
3 files changed
+10 -3

No files matched your search

+1
View File
@@ -81,6 +81,7 @@ func (cli *Client) ServiceLogs(
ContainerID: ctr.Container.ID,
MachineID: ctr.MachineID,
MachineName: machineName,
Hook: ctr.Container.Config.Labels[api.LabelHook],
}
enrichedStream := logsStreamWithServiceMetadata(stream, metadata)
ctrStreams = append(ctrStreams, enrichedStream)