mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-24 08:18:30 +00:00
types/logger: add Discard helper.
This commit is contained in:
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…
x
Reference in New Issue
Block a user