Commit 077fff8f authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #22447 from yifan-gu/fix_log

Auto commit by PR queue bot
parents 49f438bf b7a058e2
......@@ -76,7 +76,7 @@ func pipeLog(wg *sync.WaitGroup, logOptions *api.PodLogOptions, r io.ReadCloser,
var result string
if logOptions.Timestamps {
// 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 {
result = fmt.Sprintf("%s\n", msg)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment