[rhmessaging-commits] rhmessaging commits: r4336 - in mgmt/newdata/cumin/python/cumin: grid and 1 other directory.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Sep 23 13:18:38 EDT 2010


Author: eallen
Date: 2010-09-23 13:18:37 -0400 (Thu, 23 Sep 2010)
New Revision: 4336

Modified:
   mgmt/newdata/cumin/python/cumin/grid/negotiator.py
   mgmt/newdata/cumin/python/cumin/model.py
Log:
Adding exception and error logging to quotas

Modified: mgmt/newdata/cumin/python/cumin/grid/negotiator.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/grid/negotiator.py	2010-09-23 14:36:07 UTC (rev 4335)
+++ mgmt/newdata/cumin/python/cumin/grid/negotiator.py	2010-09-23 17:18:37 UTC (rev 4336)
@@ -275,6 +275,10 @@
             try:
                 groups = self.split_group_names(groups['Value'])
             except Exception, e:
+                if not groups:
+                    groups = ""
+                msg = "Unable to parse groups %s %s" % (groups, e.message)
+                log.debug(msg)
                 groups = []
 
             info = dict()

Modified: mgmt/newdata/cumin/python/cumin/model.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/model.py	2010-09-23 14:36:07 UTC (rev 4335)
+++ mgmt/newdata/cumin/python/cumin/model.py	2010-09-23 17:18:37 UTC (rev 4336)
@@ -1636,6 +1636,8 @@
                 self.got_data = True
             else:
                 self.error = QmfException(status)
+                msg = "QMF call returned with status of %s" % str(status)
+                log.error(msg)
         return completion
 
     def do_wait(self):
@@ -1651,10 +1653,13 @@
             session.call_method(self.get_completion(), obj, method_name, args)
         except Exception, e:
             self.error = e
+            log.exception(e)
 
         results = self.do_wait()
         if not results.got_data and not results.error:
             results.error = QmfException("Request timed out")
+            msg = "QMF call %s timed out" % method_name
+            log.error(msg)
 
         return results
 
@@ -1691,6 +1696,7 @@
                 session.call_method(call.get_completion(), negotiator, "GetRawConfig", (prepend+group,))
             except Exception, e:
                 call.error = e
+                log.exception(e)
 
         return self.do_wait()
 



More information about the rhmessaging-commits mailing list