From cedfa2ebf728e04818c9caa4de3c53b13bfbc51f Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Sun, 31 May 2026 02:59:14 +0200 Subject: [PATCH] peer: add temporary debug log for notifyStateChange caller --- client/internal/peer/status.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/internal/peer/status.go b/client/internal/peer/status.go index 966da1a50..64722d593 100644 --- a/client/internal/peer/status.go +++ b/client/internal/peer/status.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "net/netip" + "runtime" "slices" "sync" "sync/atomic" @@ -1340,6 +1341,9 @@ func (d *Status) UnsubscribeFromStateChanges(id string) { // is already going to fetch the latest snapshot, so multiple pending ticks // would be redundant. func (d *Status) notifyStateChange() { + if _, file, line, ok := runtime.Caller(1); ok { + log.Infof("--- notifyStateChange from %s:%d", file, line) + } d.stateChangeMux.Lock() defer d.stateChangeMux.Unlock()