diff options
| author | Alex Chan <alexc@tailscale.com> | 2026-04-19 10:37:40 +0100 |
|---|---|---|
| committer | Alex Chan <alex@alexwlchan.net> | 2026-04-19 16:52:48 +0100 |
| commit | cf76202aa3c4a07423642b8510766d5712ada195 (patch) | |
| tree | 81b9d707c93d948177bc348c3a669154350fd662 | |
| parent | cb5a53c424ebf59ad4a4baf7f872736c9e59697c (diff) | |
| download | tailscale-cf76202aa3c4a07423642b8510766d5712ada195.tar.xz tailscale-cf76202aa3c4a07423642b8510766d5712ada195.zip | |
ipn/ipnlocal: log the local and remote TKA HEADs during sync
Update this log message to show both the local and remote TKA HEAD; this
is useful for debugging issues on nodes that have fallen behind the
remote TKA HEAD.
Updates tailscale/corp#39455
Change-Id: Ia62ce15756180d2fbac4a898fb94d6143df08b54
Signed-off-by: Alex Chan <alexc@tailscale.com>
| -rw-r--r-- | ipn/ipnlocal/network-lock.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipn/ipnlocal/network-lock.go b/ipn/ipnlocal/network-lock.go index 3834f9927..81d6e275a 100644 --- a/ipn/ipnlocal/network-lock.go +++ b/ipn/ipnlocal/network-lock.go @@ -299,7 +299,11 @@ func (b *LocalBackend) tkaSyncIfNeeded(nm *netmap.NetworkMap, prefs ipn.PrefsVie wantEnabled := nm.TKAEnabled if isEnabled || wantEnabled { - b.logf("tkaSyncIfNeeded: isEnabled=%t, wantEnabled=%t, head=%v", isEnabled, wantEnabled, nm.TKAHead) + nodeHead := "<not-enabled>" + if b.tka != nil { + nodeHead = b.tka.authority.Head().String() + } + b.logf("tkaSyncIfNeeded: isEnabled=%t, wantEnabled=%t, nodeHead=%v, netmapHead=%v", isEnabled, wantEnabled, nodeHead, nm.TKAHead) } ourNodeKey, ok := prefs.Persist().PublicNodeKeyOK() |
