Permalink
Browse files

added lambda capability to log

  • Loading branch information...
cantora
cantora committed Sep 21, 2012
1 parent e520d2f commit 1f6c64aceb58ce33d42cff100dd6b3c2ce7e2eae
Showing with 3 additions and 0 deletions.
  1. +3 −0 pyc_log.py
View
@@ -20,5 +20,8 @@ def log_set_quiet():
def log(str):
global ch
if ch.level == logging.DEBUG:
+ if hasattr(str, '__call__'):
+ str = str()
+
print str

0 comments on commit 1f6c64a

Please sign in to comment.