Martin Sivák has uploaded a new change for review. Change subject: Log HostMonitor crashes ......................................................................
Log HostMonitor crashes Change-Id: Idc803555147b1500389d259a19b092a410983109 Signed-off-by: Martin Sivak <msi...@redhat.com> --- M mom/HostMonitor.py 1 file changed, 8 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/94/22094/1 diff --git a/mom/HostMonitor.py b/mom/HostMonitor.py index e5f54f1..f1aed4a 100644 --- a/mom/HostMonitor.py +++ b/mom/HostMonitor.py @@ -46,7 +46,11 @@ def run(self): self.logger.info("Host Monitor starting") - while self._should_run(): - data = self.collect() - time.sleep(self.interval) - self.logger.info("Host Monitor ending") + try: + while self._should_run(): + data = self.collect() + time.sleep(self.interval) + except Exception as e: + self.logger.error("Host monitor crashed", exc_info=True) + else: + self.logger.info("Host Monitor ending") -- To view, visit http://gerrit.ovirt.org/22094 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idc803555147b1500389d259a19b092a410983109 Gerrit-PatchSet: 1 Gerrit-Project: mom Gerrit-Branch: master Gerrit-Owner: Martin Sivák <msi...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches