From bd60a17bf40068295505502d719aa409b851f9c3 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 4 Oct 2010 14:28:27 +0200 Subject: [PATCH] tweaked logging --- sfa/methods/get_trusted_certs.py | 3 ++- sfa/util/method.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sfa/methods/get_trusted_certs.py b/sfa/methods/get_trusted_certs.py index 05addc92..704fd429 100644 --- a/sfa/methods/get_trusted_certs.py +++ b/sfa/methods/get_trusted_certs.py @@ -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: diff --git a/sfa/util/method.py b/sfa/util/method.py index 9a3d457e..ec9440e5 100644 --- a/sfa/util/method.py +++ b/sfa/util/method.py @@ -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 -- 2.45.2