Browse Source

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.
pull/7838/head
Chris Lu 2 months ago
parent
commit
324a292f9c
  1. 2
      weed/worker/client.go

2
weed/worker/client.go

@ -428,7 +428,9 @@ func handleIncoming(
if rr := msg.GetRegistrationResponse(); rr != nil { if rr := msg.GetRegistrationResponse(); rr != nil {
select { select {
case regWait <- rr: case regWait <- rr:
glog.V(3).Infof("REGISTRATION RESPONSE: Worker %s routed registration response to waiter", workerID)
default: default:
glog.V(2).Infof("REGISTRATION RESPONSE DROPPED: Worker %s registration response dropped (no waiter)", workerID)
} }
} }

Loading…
Cancel
Save