Merge pull request #22447 from yifan-gu/fix_log

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2016-03-04 08:01:51 -08:00
commit 077fff8f4a

View File

@ -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)
} }