From 71611f4a9175249a428161253b1aec04870992f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Fri, 12 Jun 2026 12:15:05 +0200 Subject: [PATCH] Remove temporary debug logs for notifyStateChange and state.Set --- client/internal/peer/status.go | 4 ---- client/internal/state.go | 6 ------ 2 files changed, 10 deletions(-) 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