summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2026-04-17 18:12:08 +0000
committerBrad Fitzpatrick <brad@danga.com>2026-04-17 12:19:39 -0700
commit1fbb834dc32a12f98cada56060b71bfffb37301e (patch)
tree3968c0968e79a85900146458e08c950af1139503 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent8dda62cc24692b17e9bec0156160d8e54046d762 (diff)
downloadtailscale-1fbb834dc32a12f98cada56060b71bfffb37301e.tar.xz
tailscale-1fbb834dc32a12f98cada56060b71bfffb37301e.zip
logtail: add Logger.SetEnabled to toggle uploads at runtime
Callers that need to turn logtail uploads on and off in response to user preference or policy changes previously had no choice: the package-level Disable is a one-way kill switch intended for the controlplane DisableLogTail debug message, and requires a process restart to undo. Add a per-Logger disabled flag, toggled via SetEnabled, that drops incoming entries without buffering while disabled. The process-wide Disable still takes precedence, so a controlplane-issued kill switch cannot be overridden by a client setting it back on. To simplify https://github.com/tailscale/tailscale-android/pull/695 Updates #13174 Change-Id: I06e75bd719c851f5f837ca5b2d1e17f7c68355f0 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions