X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Fxmlrpcapi.py;h=b6f8e9512bc5955e00cddc0fe1962b971f704156;hb=ffcfb206d0f4ea9788c9f4dea7b2951e55ff513a;hp=456cd42ddd3977d121a16876b45546b3f71c7e6b;hpb=ee8a376da1107884bee1ea29248a70e4da8410c9;p=sfa.git diff --git a/sfa/server/xmlrpcapi.py b/sfa/server/xmlrpcapi.py index 456cd42d..b6f8e951 100644 --- a/sfa/server/xmlrpcapi.py +++ b/sfa/server/xmlrpcapi.py @@ -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)