diff options
author | baude <bbaude@redhat.com> | 2019-07-07 08:09:48 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-07-07 08:54:20 -0500 |
commit | d252100c946ff7fd581197d636ed7966b11e9a83 (patch) | |
tree | 50fc6db382a33dcdf83b3798845980b636951bd7 /libpod/events/journal_linux.go | |
parent | f7407f2eb512e1407f8281009eb829f37405119b (diff) | |
download | podman-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.go | 4 |
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 |