Merge "Use LOG.exception in except block in status module"

This commit is contained in:
Zuul 2019-02-06 08:58:32 +00:00 committed by Gerrit Code Review
commit 822ccf635a
1 changed files with 2 additions and 2 deletions

View File

@ -203,8 +203,8 @@ class LeaseStatus(BaseStatus):
try:
result = func(*args, **kwargs)
except Exception as e:
LOG.error('Lease %s went into ERROR status. %s',
lease_id, str(e))
LOG.exception('Lease %s went into ERROR status. %s',
lease_id, str(e))
db_api.lease_update(lease_id,
{'status': cls.ERROR})
raise e