diff --git a/client/internal/peer/status.go b/client/internal/peer/status.go index d05e62209..e740714e3 100644 --- a/client/internal/peer/status.go +++ b/client/internal/peer/status.go @@ -5,7 +5,6 @@ import ( "errors" "fmt" "net/netip" - "runtime" "slices" "sync" "sync/atomic" @@ -1370,9 +1369,6 @@ 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() diff --git a/client/internal/state.go b/client/internal/state.go index 57f8ce837..0adfa26e4 100644 --- a/client/internal/state.go +++ b/client/internal/state.go @@ -2,10 +2,7 @@ package internal import ( "context" - "runtime" "sync" - - log "github.com/sirupsen/logrus" ) type StatusType string @@ -55,9 +52,6 @@ func (c *contextState) SetOnChange(fn func()) { } func (c *contextState) Set(update StatusType) { - if _, file, line, ok := runtime.Caller(1); ok { - log.Infof("--- state.Set(%s) from %s:%d", update, file, line) - } c.mutex.Lock() c.status = update c.err = nil