summaryrefslogtreecommitdiff
path: root/libpod/events/nullout.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-08-01 12:43:21 -0500
committerbaude <bbaude@redhat.com>2019-08-02 20:05:27 -0500
commit63eef5a23415380bdc3975c90fc88305a0380a61 (patch)
treeee58434bb3c92258d3ff899b9e234be31aebd6c4 /libpod/events/nullout.go
parent3cc9ab8992833ddf952df479ffb239c61845fa2e (diff)
downloadpodman-63eef5a23415380bdc3975c90fc88305a0380a61.tar.gz
podman-63eef5a23415380bdc3975c90fc88305a0380a61.tar.bz2
podman-63eef5a23415380bdc3975c90fc88305a0380a61.zip
add eventlogger to info
to help with future debugging, we now display the type of event logger being used inside podman info -> host. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/events/nullout.go')
-rw-r--r--libpod/events/nullout.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/libpod/events/nullout.go b/libpod/events/nullout.go
index b11afcf80..f3b36e609 100644
--- a/libpod/events/nullout.go
+++ b/libpod/events/nullout.go
@@ -17,6 +17,10 @@ func (e EventToNull) Read(options ReadOptions) error {
// NewNullEventer returns a new null eventer. You should only do this for
// the purposes on internal libpod testing.
func NewNullEventer() Eventer {
- e := EventToNull{}
- return e
+ return EventToNull{}
+}
+
+// String returns a string representation of the logger
+func (e EventToNull) String() string {
+ return "none"
}