util/syspolicy, ipn: add "tailscale debug component-logs" support

Fixes #13313
Fixes #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
This commit is contained in:
Nick Khyl
2024-10-08 13:59:50 -05:00
committed by Nick Khyl
parent 29cf59a9b4
commit da40609abd
9 changed files with 101 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ import (
"errors"
"time"
"tailscale.com/util/syspolicy/internal/loggerx"
"tailscale.com/util/syspolicy/setting"
)
@@ -135,3 +136,8 @@ func SelectControlURL(reg, disk string) string {
}
return def
}
// SetDebugLoggingEnabled controls whether spammy debug logging is enabled.
func SetDebugLoggingEnabled(v bool) {
loggerx.SetDebugLoggingEnabled(v)
}