From 324a292f9c4ba3bd6c02f4917f0a8dff6ca745d0 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 22 Dec 2025 00:35:20 -0800 Subject: [PATCH] Add debug logging for registration response routing Add glog.V(3) and glog.V(2) logs to track successful and dropped registration responses in handleIncoming, helping diagnose registration issues in production. --- weed/worker/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/worker/client.go b/weed/worker/client.go index f2b4a37ba..5b8df5763 100644 --- a/weed/worker/client.go +++ b/weed/worker/client.go @@ -428,7 +428,9 @@ func handleIncoming( if rr := msg.GetRegistrationResponse(); rr != nil { select { case regWait <- rr: + glog.V(3).Infof("REGISTRATION RESPONSE: Worker %s routed registration response to waiter", workerID) default: + glog.V(2).Infof("REGISTRATION RESPONSE DROPPED: Worker %s registration response dropped (no waiter)", workerID) } }