Log the exception-info when an error raises in hanlder

should make the debug and troubleshooting easier.

Change-Id: I5db66a1dd5ac2ad3f6ed9d8ddeffd12438f590d5
This commit is contained in:
Eyal Leshem 2018-02-26 10:28:20 +02:00
parent db9d28da79
commit 87bd64c9a2

View File

@ -68,7 +68,7 @@ class Retry(base.EventHandler):
LOG.debug('Report handler unhealthy %s', self._handler)
self._handler.set_health_status(healthy=False)
except Exception:
LOG.debug('Report handler unhealthy %s', self._handler)
LOG.exception('Report handler unhealthy %s', self._handler)
self._handler.set_health_status(healthy=False)
raise