diff options
author | Matthew Heon <mheon@redhat.com> | 2019-04-25 16:23:09 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2019-04-25 16:23:09 -0400 |
commit | 04d6ff058270006b98961e0f973ff6ee4c3ba8e8 (patch) | |
tree | a929615470ee8c220f95512f194054d145656be7 /libpod/events/events_linux.go | |
parent | a01c62fcbde1afdc77aa05b71c3c84ddacf7fc55 (diff) | |
download | podman-04d6ff058270006b98961e0f973ff6ee4c3ba8e8.tar.gz podman-04d6ff058270006b98961e0f973ff6ee4c3ba8e8.tar.bz2 podman-04d6ff058270006b98961e0f973ff6ee4c3ba8e8.zip |
Add System event type and renumber, refresh events
Also, re-add locking to file eventer Write() to protect against
concurrent events.
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/events/events_linux.go')
-rw-r--r-- | libpod/events/events_linux.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libpod/events/events_linux.go b/libpod/events/events_linux.go index d6898145c..da5d7965e 100644 --- a/libpod/events/events_linux.go +++ b/libpod/events/events_linux.go @@ -1,13 +1,16 @@ package events import ( - "github.com/pkg/errors" "strings" + + "github.com/pkg/errors" + "github.com/sirupsen/logrus" ) // NewEventer creates an eventer based on the eventer type func NewEventer(options EventerOptions) (Eventer, error) { var eventer Eventer + logrus.Debugf("Initializing event backend %s", options.EventerType) switch strings.ToUpper(options.EventerType) { case strings.ToUpper(Journald.String()): eventer = EventJournalD{options} |