diff --git a/pkg/server/container_status.go b/pkg/server/container_status.go index 45950ed95..cb5728465 100644 --- a/pkg/server/container_status.go +++ b/pkg/server/container_status.go @@ -74,5 +74,6 @@ func toCRIContainerStatus(container containerstore.Container, imageRef string) * Labels: meta.Config.GetLabels(), Annotations: meta.Config.GetAnnotations(), Mounts: meta.Config.GetMounts(), + LogPath: meta.LogPath, } } diff --git a/pkg/server/container_status_test.go b/pkg/server/container_status_test.go index 51e2e5fb6..c25ae2a9a 100644 --- a/pkg/server/container_status_test.go +++ b/pkg/server/container_status_test.go @@ -54,6 +54,7 @@ func getContainerStatusTestData() (*containerstore.Metadata, *containerstore.Sta SandboxID: "test-sandbox-id", Config: config, ImageRef: "test-image-id", + LogPath: "test-log-path", } status := &containerstore.Status{ Pid: 1234, @@ -76,6 +77,7 @@ func getContainerStatusTestData() (*containerstore.Metadata, *containerstore.Sta Labels: config.GetLabels(), Annotations: config.GetAnnotations(), Mounts: config.GetMounts(), + LogPath: "test-log-path", } return metadata, status, image, expected