summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2026-04-20 19:15:12 +0000
committerBrad Fitzpatrick <brad@danga.com>2026-04-20 13:33:10 -0700
commit5b06e32f330a37bc26ac959e2541c271a6966e82 (patch)
tree6138a9acd0261f15aefc41bbf3fb52e94e22eaed /control/controlhttp/controlhttpserver/controlhttpserver.go
parent4a832d8d0f563f98e773ac97c0f460877992b965 (diff)
downloadtailscale-5b06e32f330a37bc26ac959e2541c271a6966e82.tar.xz
tailscale-5b06e32f330a37bc26ac959e2541c271a6966e82.zip
logtail: add Config.Disabled to suppress the startup banner
NewLogger unconditionally writes a "logtail started" banner before it returns, which callers that later call Logger.SetEnabled(false) have no way to suppress: the banner is already buffered for upload by the time the caller gets the logger back. Add Config.Disabled so callers that know up front they want the logger to start disabled (e.g. Android's remote-logging opt-out) can seed the state before NewLogger's internal Write. The process- wide Disable kill switch still takes precedence; SetEnabled can still flip the state at runtime. Updates #13174 Updates tailscale/tailscale-android#695 Change-Id: Icc4fa88c198447cf0faa707264dac84e359fe52c Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions