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 <bradfitz@tailscale.com>pull/3942/head
parent
2448c000b3
commit
01e8a152f7
|
@ -170,6 +170,9 @@ func NewLocalBackend(logf logger.Logf, logid string, store ipn.StateStore, diale
|
||||||
if e == nil {
|
if e == nil {
|
||||||
panic("ipn.NewLocalBackend: engine must not be 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)
|
envknob.LogCurrent(logf)
|
||||||
if dialer == nil {
|
if dialer == nil {
|
||||||
dialer = new(tsdial.Dialer)
|
dialer = new(tsdial.Dialer)
|
||||||
|
|
Loading…
Reference in New Issue