mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 14:57:49 +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)
|
||||
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