summaryrefslogtreecommitdiff
path: root/libpod/events/events.go
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2019-05-08 08:49:08 +0200
committerSascha Grunert <sgrunert@suse.com>2019-05-13 14:00:27 +0200
commitd1fc3fc702cce6efca4a20f972ef1931c8392548 (patch)
tree3202ed2e2a36c622362d6585495c5c564c800962 /libpod/events/events.go
parentd2571c7fd49d22e822a6f3b3796488218c9f9e46 (diff)
downloadpodman-d1fc3fc702cce6efca4a20f972ef1931c8392548.tar.gz
podman-d1fc3fc702cce6efca4a20f972ef1931c8392548.tar.bz2
podman-d1fc3fc702cce6efca4a20f972ef1931c8392548.zip
Add `systemd` build tag
If the systemd development files are not present on the system which builds podman, then `podman events` will error on runtime creation. Beside this, a warning will be printed when compiling podman. This commit mainly exists because projects which depend on libpod would not need the podman event support and therefore do not need to rely on the systemd headers. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'libpod/events/events.go')
-rw-r--r--libpod/events/events.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/events/events.go b/libpod/events/events.go
index 650a47bfb..1ec79bcd7 100644
--- a/libpod/events/events.go
+++ b/libpod/events/events.go
@@ -10,6 +10,10 @@ import (
"github.com/pkg/errors"
)
+// ErrNoJournaldLogging indicates that there is no journald logging
+// supported (requires libsystemd)
+var ErrNoJournaldLogging = errors.New("No support for journald logging")
+
// String returns a string representation of EventerType
func (et EventerType) String() string {
if et == LogFile {