Merge "Add a log info message in Stack state_set"

This commit is contained in:
Jenkins 2014-04-22 19:34:44 +00:00 committed by Gerrit Code Review
commit 405d8b99f2
1 changed files with 5 additions and 0 deletions

View File

@ -397,6 +397,11 @@ class Stack(collections.Mapping):
stack.update_and_save({'action': action,
'status': status,
'status_reason': reason})
msg = _('Stack %(action)s %(status)s (%(name)s): %(reason)s')
logger.info(msg % {'action': action,
'status': status,
'name': self.name,
'reason': reason})
notification.send(self)
@property