Log decline reason at info
Admins need to know why requests were declined, and major decisions should be logged at info level. Note that the complementary "Accepting node request" may be okay at debug level as there is a more informative "Assigning node request" message at info. Change-Id: I67ac8c75e5581cc4da77cba42a98c5c3785640ff
This commit is contained in:
parent
9c83e8a95e
commit
f0eb830bb7
|
@ -552,8 +552,8 @@ class NodeRequestHandler(NodeRequestHandlerNotifications,
|
|||
declined_reasons.append('it would exceed quota')
|
||||
|
||||
if declined_reasons:
|
||||
self.log.debug("Declining node request because %s",
|
||||
', '.join(declined_reasons))
|
||||
self.log.info("Declining node request because %s",
|
||||
', '.join(declined_reasons))
|
||||
self.decline_request()
|
||||
self._declinedHandlerCleanup()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue