diff --git a/ipn/ipnlocal/network-lock.go b/ipn/ipnlocal/network-lock.go index c661cc787..b2d09b627 100644 --- a/ipn/ipnlocal/network-lock.go +++ b/ipn/ipnlocal/network-lock.go @@ -158,7 +158,9 @@ func (b *LocalBackend) tkaSyncIfNeeded(nm *netmap.NetworkMap, prefs ipn.PrefsVie return nil } - b.logf("tkaSyncIfNeeded: enabled=%v, head=%v", nm.TKAEnabled, nm.TKAHead) + if b.tka != nil || nm.TKAEnabled { + b.logf("tkaSyncIfNeeded: enabled=%v, head=%v", nm.TKAEnabled, nm.TKAHead) + } ourNodeKey := prefs.Persist().PublicNodeKey() @@ -197,7 +199,7 @@ func (b *LocalBackend) tkaSyncIfNeeded(nm *netmap.NetworkMap, prefs ipn.PrefsVie health.SetTKAHealth(nil) } } else { - return fmt.Errorf("[bug] unreachable invariant of wantEnabled /w isEnabled") + return fmt.Errorf("[bug] unreachable invariant of wantEnabled w/ isEnabled") } }