mirror of https://github.com/tailscale/tailscale/
net/sockstats: pass in logger to sockstats.WithSockStats
Using log.Printf may end up being printed out to the console, which is not desirable. I noticed this when I was investigating some client logs with `sockstats: trace "NetcheckClient" was overwritten by another`. That turns to be harmless/expected (the netcheck client will fall back to the DERP client in some cases, which does its own sockstats trace). However, the log output could be visible to users if running the `tailscale netcheck` CLI command, which would be needlessly confusing. Updates tailscale/corp#9230 Signed-off-by: Mihai Parparita <mihai@tailscale.com>pull/7932/head
parent
782ccb5655
commit
edb02b63f8
Loading…
Reference in New Issue