Skip to content

Commit dcc2568

Browse files
authored
added timestamps to logs (#32)
1 parent 136925c commit dcc2568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/k8s/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func Logs(namespace, podName, containerName string) (string, error) {
10-
cmd := exec.Command("kubectl", "logs", "-n", namespace, podName, "-c", containerName)
10+
cmd := exec.Command("kubectl", "logs", "-n", namespace, podName, "-c", containerName, "--timestamps=true")
1111
var out bytes.Buffer
1212
var stderr bytes.Buffer
1313
cmd.Stdout = &out

0 commit comments

Comments
 (0)