projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a2a430
)
skytools.skylog: fixed SkyLogger.trace() vs funcName format attribute
author
martinko
<gamato@users.sf.net>
Tue, 6 Dec 2011 10:31:06 +0000
(12:31 +0200)
committer
martinko
<gamato@users.sf.net>
Tue, 6 Dec 2011 10:31:06 +0000
(12:31 +0200)
python/skytools/skylog.py
patch
|
blob
|
blame
|
history
diff --git
a/python/skytools/skylog.py
b/python/skytools/skylog.py
index 413d8a945fa9c34b41128487c56225c8c7bf6678..544d4ace37bf856139f96332fbeaadb725f291f3 100644
(file)
--- a/
python/skytools/skylog.py
+++ b/
python/skytools/skylog.py
@@
-220,7
+220,8
@@
TRACE = 5
class SkyLogger (logging.getLoggerClass()):
def trace (self, msg, *args, **kwargs):
- return self.log (TRACE, msg, *args, **kwargs)
+ if self.isEnabledFor (TRACE):
+ self._log (TRACE, msg, args, **kwargs)
_skylogger_installed = False