Remove temporary debug logs for notifyStateChange and state.Set

This commit is contained in:
Zoltán Papp
2026-06-12 12:15:05 +02:00
parent 860be01ebe
commit 71611f4a91
2 changed files with 0 additions and 10 deletions

View File

@@ -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()

View File

@@ -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