Adam Litke has uploaded a new change for review.

Change subject: mom: Redirect mom init stacktrace to debug log
......................................................................

mom: Redirect mom init stacktrace to debug log

When MOM initialization fails we are currently falling back to the old
KsmMonitor.  When this happens we print a warning which is appropriate.  Since
the error is handled, we should not print the stack trace at warning level.
This information is useful in debug mode however.

Split the stack trace printout into a separate debug logging message.

Change-Id: I8e85fafadd3e9180b6c5911baa6552b380476e3c
Signed-off-by: Adam Litke <[email protected]>
---
M vdsm/clientIF.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/71/9271/1

diff --git a/vdsm/clientIF.py b/vdsm/clientIF.py
index 38aa0d7..ed3a0f0 100644
--- a/vdsm/clientIF.py
+++ b/vdsm/clientIF.py
@@ -194,7 +194,8 @@
             self.mom = MomThread(momconf)
         except:
             self.log.warn("MOM initialization failed and fall "
-                           "back to KsmMonitor", exc_info=True)
+                           "back to KsmMonitor")
+            self.log.debug("Details:", exc_info=True)
             self.ksmMonitor = ksm.KsmMonitorThread(self)
 
     def _syncLibvirtNetworks(self):


--
To view, visit http://gerrit.ovirt.org/9271
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8e85fafadd3e9180b6c5911baa6552b380476e3c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to