mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
rkt: Formats the timestamp to RFC3339.
This should fix the e2e test: "should be able to retrieve and filter logs [Conformance]".
This commit is contained in:
parent
2cf91576a1
commit
b7a058e290
@ -76,7 +76,7 @@ func pipeLog(wg *sync.WaitGroup, logOptions *api.PodLogOptions, r io.ReadCloser,
|
|||||||
var result string
|
var result string
|
||||||
if logOptions.Timestamps {
|
if logOptions.Timestamps {
|
||||||
// Use the same time format as docker.
|
// Use the same time format as docker.
|
||||||
result = fmt.Sprintf("%s %s\n", t, msg)
|
result = fmt.Sprintf("%s %s\n", t.Format(time.RFC3339), msg)
|
||||||
} else {
|
} else {
|
||||||
result = fmt.Sprintf("%s\n", msg)
|
result = fmt.Sprintf("%s\n", msg)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user