From 9569ac208155e6c8c4ee6a71a58ebdaf4d197f90 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Sun, 31 May 2026 03:45:35 +0200 Subject: [PATCH] internal: add temporary debug log for state.Set value and caller --- client/internal/state.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/internal/state.go b/client/internal/state.go index 0adfa26e4..57f8ce837 100644 --- a/client/internal/state.go +++ b/client/internal/state.go @@ -2,7 +2,10 @@ package internal import ( "context" + "runtime" "sync" + + log "github.com/sirupsen/logrus" ) type StatusType string @@ -52,6 +55,9 @@ 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