merge until "support write_ method on readonly param and more"
from gerrit Change-Id: I8d2ad2a381d3a37947d8afc5e17be0428d94df36
This commit is contained in:
@ -178,7 +178,9 @@ class StateMachine:
|
||||
if self.stop_exc:
|
||||
raise self.stop_exc
|
||||
except Exception as e:
|
||||
self.log.info('%r raised in state %r', e, self.status_string)
|
||||
# Stop and Restart are not unusual -> no warning
|
||||
log = self.log.debug if isinstance(e, Stop) else self.log.warning
|
||||
log('%r raised in state %r', e, self.status_string)
|
||||
self.last_error = e
|
||||
ret = self.cleanup(self)
|
||||
self.log.debug('cleanup %r %r %r', self.cleanup, self.last_error, ret)
|
||||
|
Reference in New Issue
Block a user