Log the exception-info when an error raises in hanlder
on the line we set the liveness probe to False, which triggers
restart of the Kuryr Controller.
However without DEBUG, the LOG message is hidden behind DEBUG.
This makes it harder to troubleshoot if the Handler failed with this
exception
@@ -95,7 +95,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)
