summaryrefslogtreecommitdiff
path: root/libpod/events/journal_linux.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-07-07 08:09:48 -0500
committerbaude <bbaude@redhat.com>2019-07-07 08:54:20 -0500
commitd252100c946ff7fd581197d636ed7966b11e9a83 (patch)
tree50fc6db382a33dcdf83b3798845980b636951bd7 /libpod/events/journal_linux.go
parentf7407f2eb512e1407f8281009eb829f37405119b (diff)
downloadpodman-d252100c946ff7fd581197d636ed7966b11e9a83.tar.gz
podman-d252100c946ff7fd581197d636ed7966b11e9a83.tar.bz2
podman-d252100c946ff7fd581197d636ed7966b11e9a83.zip
get last container event
an internal change in libpod will soon required the ability to lookup the last container event using the continer name or id and the type of event. this pr is in preperation for that need. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/events/journal_linux.go')
-rw-r--r--libpod/events/journal_linux.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/events/journal_linux.go b/libpod/events/journal_linux.go
index 78a630e9a..d5bce4334 100644
--- a/libpod/events/journal_linux.go
+++ b/libpod/events/journal_linux.go
@@ -101,7 +101,9 @@ func (e EventJournalD) Read(options ReadOptions) error {
// We can't decode this event.
// Don't fail hard - that would make events unusable.
// Instead, log and continue.
- logrus.Errorf("Unable to decode event: %v", err)
+ if errors.Cause(err) != ErrEventTypeBlank {
+ logrus.Errorf("Unable to decode event: %v", err)
+ }
continue
}
include := true