diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-08 16:23:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 16:23:22 +0200 |
commit | 61c000a1d3bc58bbd669626ab67a9552088f3242 (patch) | |
tree | 50fc6db382a33dcdf83b3798845980b636951bd7 /libpod/events/journal_linux.go | |
parent | f7407f2eb512e1407f8281009eb829f37405119b (diff) | |
parent | d252100c946ff7fd581197d636ed7966b11e9a83 (diff) | |
download | podman-61c000a1d3bc58bbd669626ab67a9552088f3242.tar.gz podman-61c000a1d3bc58bbd669626ab67a9552088f3242.tar.bz2 podman-61c000a1d3bc58bbd669626ab67a9552088f3242.zip |
Merge pull request #3505 from baude/getlastevent
get last container event
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 |