From 96b2f20c5b4dc8a43e4c2662f7ac6ee45d14cf66 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 6 Apr 2020 19:15:19 -0700 Subject: [PATCH] types/logger: add Discard helper. --- types/logger/logger.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/logger/logger.go b/types/logger/logger.go index c48c8499f..acc9139c2 100644 --- a/types/logger/logger.go +++ b/types/logger/logger.go @@ -38,3 +38,6 @@ func (w funcWriter) Write(p []byte) (int, error) { w.f("%s", p) return len(p), nil } + +// Discard is a Logf that throws away the logs given to it. +func Discard(string, ...interface{}) {}