Merge branch 'master' into senslab2
[sfa.git] / sfa / server / xmlrpcapi.py
index 456cd42..b6f8e95 100644 (file)
@@ -111,6 +111,7 @@ class XmlrpcApi:
             callablemethod = getattr(module, classname)(self)
             return getattr(module, classname)(self)
         except (ImportError, AttributeError):
+            self.logger.log_exc("Error importing method: %s" % method)
             raise SfaInvalidAPIMethod, method
 
     def call(self, source, method, *args):
@@ -151,7 +152,8 @@ class XmlrpcApi:
         try:
             result = self.call(source, method, *args)
         except SfaFault, fault:
-            result = fault 
+            result = fault
+            self.logger.log_exc("XmlrpcApi.handle has caught Exception") 
         except Exception, fault:
             self.logger.log_exc("XmlrpcApi.handle has caught Exception")
             result = SfaAPIError(fault)