mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-28 09:39:05 +02:00
peer: add temporary debug log for notifyStateChange caller
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/netip"
|
"net/netip"
|
||||||
|
"runtime"
|
||||||
"slices"
|
"slices"
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
@@ -1340,6 +1341,9 @@ func (d *Status) UnsubscribeFromStateChanges(id string) {
|
|||||||
// is already going to fetch the latest snapshot, so multiple pending ticks
|
// is already going to fetch the latest snapshot, so multiple pending ticks
|
||||||
// would be redundant.
|
// would be redundant.
|
||||||
func (d *Status) notifyStateChange() {
|
func (d *Status) notifyStateChange() {
|
||||||
|
if _, file, line, ok := runtime.Caller(1); ok {
|
||||||
|
log.Infof("--- notifyStateChange from %s:%d", file, line)
|
||||||
|
}
|
||||||
d.stateChangeMux.Lock()
|
d.stateChangeMux.Lock()
|
||||||
defer d.stateChangeMux.Unlock()
|
defer d.stateChangeMux.Unlock()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user