review logging again; code that runs in client and/or server now logs in the right...
[sfa.git] / sfa / util / xmlrpcprotocol.py
index d1fbe1e..43c957a 100644 (file)
@@ -2,7 +2,7 @@
 
 import xmlrpclib
 
-from sfa.util.sfalogging import sfa_logger, console_logger
+from sfa.util.sfalogging import sfa_logger
 
 ##
 # ServerException, ExceptionUnmarshaller
@@ -53,14 +53,10 @@ class XMLRPCServerProxy(xmlrpclib.ServerProxy):
         verbose = False
         if self.options and self.options.debug:
             verbose = True
-        if self.options and hasattr(self.options,'client'):
-            XMLRPCServerProxy.logger=console_logger
-        else:
-            XMLRPCServerProxy.logger=sfa_logger
         xmlrpclib.ServerProxy.__init__(self, url, transport, allow_none=allow_none, verbose=verbose)
 
     def __getattr__(self, attr):
-        XMLRPCServerProxy.logger.debug("Calling xml-rpc method:%s"%attr)
+        sfa_logger().debug("Calling xml-rpc method:%s"%attr)
         return xmlrpclib.ServerProxy.__getattr__(self, attr)