types/logger: add Discard helper.
parent
44434fdc82
commit
96b2f20c5b
|
@ -38,3 +38,6 @@ func (w funcWriter) Write(p []byte) (int, error) {
|
||||||
w.f("%s", p)
|
w.f("%s", p)
|
||||||
return len(p), nil
|
return len(p), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Discard is a Logf that throws away the logs given to it.
|
||||||
|
func Discard(string, ...interface{}) {}
|
||||||
|
|
Loading…
Reference in New Issue