summaryrefslogtreecommitdiffhomepage
path: root/control/controlclient
diff options
context:
space:
mode:
authorAndrew Lytvynov <awly@tailscale.com>2025-01-09 15:36:35 -0800
committerAndrew Lytvynov <awly@tailscale.com>2025-01-09 15:36:35 -0800
commit51774b3382bb248fd9562b40616aca3ce031eb99 (patch)
treea16b2401b49f8c6c80a17115072f3ef7fda08959 /control/controlclient
parent6ddeae755695de850c56c788cba10bd4736934bb (diff)
downloadtailscale-awly/appconnector-debug-logs.tar.xz
tailscale-awly/appconnector-debug-logs.zip
WIP: debug logs for app connector debuggingawly/appconnector-debug-logs
Diffstat (limited to 'control/controlclient')
-rw-r--r--control/controlclient/auto.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/control/controlclient/auto.go b/control/controlclient/auto.go
index edd0ae29c..5a798a384 100644
--- a/control/controlclient/auto.go
+++ b/control/controlclient/auto.go
@@ -7,6 +7,7 @@ import (
"context"
"errors"
"fmt"
+ "log"
"net/http"
"sync"
"sync/atomic"
@@ -423,6 +424,11 @@ type mapRoutineState struct {
var _ NetmapDeltaUpdater = mapRoutineState{}
func (mrs mapRoutineState) UpdateFullNetmap(nm *netmap.NetworkMap) {
+ for _, p := range nm.Peers {
+ if routes := p.PrimaryRoutes(); routes.Len() > 0 {
+ log.Printf("DEBUG: node %q routes %q", p.Name(), routes.AsSlice())
+ }
+ }
c := mrs.c
c.mu.Lock()