486a423716
This adds a new `UserLogf` field to the `Server` struct. When set this any logs generated by Server are logged using `UserLogf` and all spammy backend logs are logged to `Logf`. If it `UserLogf` is unset, we default to `log.Printf` and if `Logf` is unset we discard all the spammy logs. Fixes #12094 Signed-off-by: Maisem Ali <maisem@tailscale.com> |
||
---|---|---|
.. | ||
.gitignore | ||
handlers.go | ||
handlers_test.go | ||
server.go | ||
server_test.go | ||
sniproxy.go | ||
sniproxy_test.go |