summaryrefslogtreecommitdiff
path: root/libpod/container_log.go
diff options
context:
space:
mode:
authorPeter Hunt <pehunt@redhat.com>2019-05-20 13:58:31 -0400
committerPeter Hunt <pehunt@redhat.com>2019-05-28 11:10:57 -0400
commit51bdf29f0493827ce3eb278a193d0a7402add896 (patch)
tree685eb00a699d96bc0f5174ee7b9b7d51d6a851b9 /libpod/container_log.go
parent02f971131a3bb71615d15a45df808edd0fa88266 (diff)
downloadpodman-51bdf29f0493827ce3eb278a193d0a7402add896.tar.gz
podman-51bdf29f0493827ce3eb278a193d0a7402add896.tar.bz2
podman-51bdf29f0493827ce3eb278a193d0a7402add896.zip
Address comments
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'libpod/container_log.go')
-rw-r--r--libpod/container_log.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/libpod/container_log.go b/libpod/container_log.go
index 9276b52f4..c893ccad9 100644
--- a/libpod/container_log.go
+++ b/libpod/container_log.go
@@ -20,9 +20,6 @@ const (
// https://github.com/golang/go/issues/19635
logTimeFormat = "2006-01-02T15:04:05.000000000Z07:00"
- // readLogTimeFormat is the format the log lines will be read in
- readLogTimeFormat = time.RFC3339Nano
-
// partialLogType signifies a log line that exceeded the buffer
// length and needed to spill into a new line
partialLogType = "P"
@@ -213,7 +210,7 @@ func newLogLine(line string) (*LogLine, error) {
if len(splitLine) < 4 {
return nil, errors.Errorf("'%s' is not a valid container log line", line)
}
- logTime, err := time.Parse(readLogTimeFormat, splitLine[0])
+ logTime, err := time.Parse(logTimeFormat, splitLine[0])
if err != nil {
return nil, errors.Wrapf(err, "unable to convert time %s from container log", splitLine[0])
}