tweaked logging
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 4 Oct 2010 12:28:27 +0000 (14:28 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 4 Oct 2010 12:28:27 +0000 (14:28 +0200)
sfa/methods/get_trusted_certs.py
sfa/util/method.py

index 05addc9..704fd42 100644 (file)
@@ -4,6 +4,7 @@ from sfa.util.parameter import Parameter, Mixed
 from sfa.trust.auth import Auth
 from sfa.trust.credential import Credential
 
+
 class get_trusted_certs(Method):
     """
     @param cred credential string specifying the rights of the caller
@@ -23,7 +24,7 @@ class get_trusted_certs(Method):
         # If cred is not specified just return the gid for this interface.
         # This is true when when a peer is attempting to initiate federation
         # with this interface 
-        sfalogging.logger.debug("get_trusted_certs: %r"%cred)
+        self.api.logger.debug("get_trusted_certs: %r"%cred)
         if not cred:
             gid_strings = []
             for gid in self.api.auth.trusted_cert_list:
index 9a3d457..ec9440e 100644 (file)
@@ -91,7 +91,7 @@ class Method (object):
             runtime = time.time() - start
 
             if self.api.config.SFA_API_DEBUG or hasattr(self, 'message'):
-                msg=getattr(self,'message',"method %s completed"%methodname)
+                msg=getattr(self,'message',"method %s completed in %02f s"%(methodname,runtime))
                 sfa_logger.info(msg)
 
             return result