diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-04 13:52:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 13:52:21 -0800 |
commit | 4b80517b6a638ff06f8ad432f0f0f5839283d058 (patch) | |
tree | 9e0d5c9e17da47e8b5c92401bb4fbb0ec2a31fd6 | |
parent | 61842031131029351c2b6145b339cd4a350372e1 (diff) | |
parent | 29ade7f6af11de5525039212f99d17cd7c9228a3 (diff) | |
download | podman-4b80517b6a638ff06f8ad432f0f0f5839283d058.tar.gz podman-4b80517b6a638ff06f8ad432f0f0f5839283d058.tar.bz2 podman-4b80517b6a638ff06f8ad432f0f0f5839283d058.zip |
Merge pull request #2522 from mheon/fix_timestamp_format_logs
Change timestamp format for podman logs
-rw-r--r-- | pkg/logs/logs.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/logs/logs.go b/pkg/logs/logs.go index bbd5509b1..7fb5c7ea8 100644 --- a/pkg/logs/logs.go +++ b/pkg/logs/logs.go @@ -35,7 +35,10 @@ import ( const ( // timeFormat is the time format used in the log. - timeFormat = time.RFC3339Nano + // It is a modified version of RFC3339Nano that guarantees trailing + // zeroes are not trimmed, taken from + // https://github.com/golang/go/issues/19635 + timeFormat = "2006-01-02T15:04:05.000000000Z07:00" ) // LogStreamType is the type of the stream in CRI container log. |