From 7f5406d2aefbd3d4079fb809e8f6eec2897ef4da Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 15 Dec 2011 17:50:30 +0100 Subject: [PATCH 1/1] shorter debug log message --- sfa/util/method.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sfa/util/method.py b/sfa/util/method.py index fc2ebaac..b9cd05e7 100644 --- a/sfa/util/method.py +++ b/sfa/util/method.py @@ -75,14 +75,12 @@ class Method: for name, value, expected in zip(max_args, args, self.accepts): self.type_check(name, value, expected, args) - if self.api.config.SFA_API_DEBUG: - logger.debug("method.__call__ [%s] : BEG %s"%(self.api.interface,methodname)) + logger.debug("method.__call__ [%s] : BEG %s"%(self.api.interface,methodname)) result = self.call(*args, **kwds) runtime = time.time() - start - if self.api.config.SFA_API_DEBUG or hasattr(self, 'message'): - logger.debug("method.__call__ [%s] : END %s in %02f s (%s)"%\ - (self.api.interface,methodname,runtime,getattr(self,'message',"[no-msg]"))) + logger.debug("method.__call__ [%s] : END %s in %02f s (%s)"%\ + (self.api.interface,methodname,runtime,getattr(self,'message',"[no-msg]"))) return result -- 2.43.0