Merge "Log the exception-info when an error raises in hanlder"

This commit is contained in:
Zuul 2021-10-13 20:35:53 +00:00 committed by Gerrit Code Review
commit 6440cfea25
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ class Retry(base.EventHandler):
if self._sleep(deadline, attempt, ex.value):
ex.reraise = False
else:
LOG.debug('Report handler unhealthy %s', self._handler)
LOG.exception('Report handler unhealthy %s',
self._handler)
self._handler.set_liveness(alive=False, exc=ex.value)
except Exception as ex:
LOG.exception('Report handler unhealthy %s', self._handler)