Log the reason we decline a request

Change-Id: I5d8f2cd2816579251ddaca4095255cabe860ec44
This commit is contained in:
James E. Blair 2023-03-15 16:09:00 -07:00
parent ff55f43956
commit 132f638b3a
1 changed files with 3 additions and 2 deletions

View File

@ -270,10 +270,11 @@ class PoolWorker(threading.Thread, stats.StatsReporter):
if not reasons_to_decline:
# Got a lock, so assign it
log.info("Assigning node request %s" % req)
log.info("Assigning node request %s", req)
rh.run()
else:
log.info("Declining node request %s" % req)
log.info("Declining node request %s due to %s",
req, reasons_to_decline)
rh.declineRequest()
continue