logpolicy: disable logs on plan9 for now

They're just distracting at the moment.

Updates #5794

Change-Id: I3e3580ec4b31401c5fea24381387958bd730fba6
This commit is contained in:
Brad Fitzpatrick 2025-03-01 15:20:04 -08:00
parent 14db99241f
commit 7a5633a859

View File

@ -627,7 +627,7 @@ func (opts Options) New() *Policy {
conf.IncludeProcSequence = true
}
if envknob.NoLogsNoSupport() || testenv.InTest() {
if envknob.NoLogsNoSupport() || testenv.InTest() || runtime.GOOS == "plan9" {
opts.Logf("You have disabled logging. Tailscale will not be able to provide support.")
conf.HTTPC = &http.Client{Transport: noopPretendSuccessTransport{}}
} else {