Merge "Downgrade WARNING-level log"

This commit is contained in:
Zuul 2018-01-04 17:30:30 +00:00 committed by Gerrit Code Review
commit d618c0aaa1
1 changed files with 5 additions and 7 deletions

View File

@ -967,13 +967,11 @@ class Stack(collections.Mapping):
# delete, stack lock is not used, hence persist state
updated = self._persist_state()
if not updated:
# Possibly failed concurrent update
LOG.warning("Failed to set state of stack %(name)s with"
" traversal ID %(trvsl_id)s, to"
" %(action)s_%(status)s",
{'name': self.name,
'trvsl_id': self.current_traversal,
'action': action, 'status': status})
LOG.info("Stack %(name)s traversal %(trvsl_id)s no longer "
"active; not setting state to %(action)s_%(status)s",
{'name': self.name,
'trvsl_id': self.current_traversal,
'action': action, 'status': status})
return updated
# Persist state to db only if status == IN_PROGRESS