From 01e8a152f7eadd60f37a8e8c4fba612d3128de2b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 14 Feb 2022 08:32:23 -0800 Subject: [PATCH] ipn/ipnlocal: log most of Hostinfo once non-verbose at start-up Our previous Hostinfo logging was all as a side effect of telling control. And it got marked as verbose (as it was) This adds a one-time Hostinfo logging that's not verbose, early in start-up. Change-Id: I1896222b207457b9bb12ffa7cf361761fa4d3b3a Signed-off-by: Brad Fitzpatrick --- ipn/ipnlocal/local.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 312f0a77f..2125447a0 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -170,6 +170,9 @@ func NewLocalBackend(logf logger.Logf, logid string, store ipn.StateStore, diale if e == nil { panic("ipn.NewLocalBackend: engine must not be nil") } + + hi := hostinfo.New() + logf("Host: %s/%s, %s", hi.OS, hi.GoArch, hi.OSVersion) envknob.LogCurrent(logf) if dialer == nil { dialer = new(tsdial.Dialer)