From 9b8f7d75b3b79a1586d8a75aa849dd4d30ea5ab7 Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Fri, 19 Sep 2025 11:05:44 +0200 Subject: [PATCH] add some logs --- client/server/server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/server/server.go b/client/server/server.go index a25c170c0..1cde42d64 100644 --- a/client/server/server.go +++ b/client/server/server.go @@ -960,14 +960,16 @@ func (s *Server) sendLogoutRequestWithConfig(ctx context.Context, config *profil } func waitStateShift(ctx context.Context) { - timer := time.NewTimer(3 * time.Second) + timer := time.NewTimer(5 * time.Second) defer timer.Stop() for { select { case <-ctx.Done(): + log.Warnf("context done while waiting for state shift: %v", ctx.Err()) timer.Stop() return case <-timer.C: + log.Warnf("state shift timed out") timer.Stop() return default: @@ -977,6 +979,7 @@ func waitStateShift(ctx context.Context) { return } if status != internal.StatusConnecting { + log.Infof("state shifting status: %v", status) return } }