summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs
diff options
context:
space:
mode:
authorMaisem Ali <maisem@tailscale.com>2024-05-10 13:12:11 -0700
committerMaisem Ali <maisem@gmail.com>2024-05-10 15:29:13 -0700
commit486a423716579200e8f8d2eae9d49ba474761c9a (patch)
tree4d18835c983d38c68380a7a47c38d1cb463e84f5 /control/controlknobs
parent7209c4f91e97eda632f86c9f0def600cf0a03949 (diff)
downloadtailscale-486a423716579200e8f8d2eae9d49ba474761c9a.tar.xz
tailscale-486a423716579200e8f8d2eae9d49ba474761c9a.zip
tsnet: split user facing and backend logging
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>
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions