feat: add toggle for log timestamps (#2471)

This commit is contained in:
Jeroen De Wilde
2026-09-30 21:14:13 -04:00
committed by GitHub
parent 8a91a0b5ab
commit 2502dd9626
7 changed files with 108 additions and 14 deletions
+4 -3
View File
@@ -866,9 +866,10 @@ func (dm *dockerManager) getContainerInfo(ctx context.Context, containerID strin
// getLogs fetches the logs for a container
func (dm *dockerManager) getLogs(ctx context.Context, containerID string) (string, error) {
query := url.Values{
"stdout": []string{"1"},
"stderr": []string{"1"},
"tail": []string{fmt.Sprintf("%d", dockerLogsTail)},
"timestamps": []string{"1"},
"stdout": []string{"1"},
"stderr": []string{"1"},
"tail": []string{fmt.Sprintf("%d", dockerLogsTail)},
}
endpoint, err := buildDockerContainerEndpoint(containerID, "logs", query)
if err != nil {