Message208223
> I really want to log the time every time if level == DEBUG and only if > 1 sec for other levels, so maybe all you need to do is remove the comment? :-) (Or maybe logger.isEnabledFor(logging.INFO) is faster than logger.log() when nothing gets logged?
Well, in this case, I think if async.DEBUG is accepted, than Victor can apply his "debug_flag.patch" (with some modifications), and if not, then his "logger_is_enabled_for.patch" would work for you too. |
|
Date |
User |
Action |
Args |
2014-01-15 23:36:35 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, vstinner |
2014-01-15 23:36:35 | yselivanov | set | messageid: <1389828995.26.0.0552530182187.issue20275@psf.upfronthosting.co.za> |
2014-01-15 23:36:35 | yselivanov | link | issue20275 messages |
2014-01-15 23:36:35 | yselivanov | create | |
|