diff options
| author | Andrew Lytvynov <awly@tailscale.com> | 2025-01-09 15:36:35 -0800 |
|---|---|---|
| committer | Andrew Lytvynov <awly@tailscale.com> | 2025-01-09 15:36:35 -0800 |
| commit | 51774b3382bb248fd9562b40616aca3ce031eb99 (patch) | |
| tree | a16b2401b49f8c6c80a17115072f3ef7fda08959 /control | |
| parent | 6ddeae755695de850c56c788cba10bd4736934bb (diff) | |
| download | tailscale-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')
| -rw-r--r-- | control/controlclient/auto.go | 6 |
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() |
