This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients gvanrossum, vstinner, yselivanov
Date 2014-01-15.23:36:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389828995.26.0.0552530182187.issue20275@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2014-01-15 23:36:35yselivanovsetrecipients: + yselivanov, gvanrossum, vstinner
2014-01-15 23:36:35yselivanovsetmessageid: <1389828995.26.0.0552530182187.issue20275@psf.upfronthosting.co.za>
2014-01-15 23:36:35yselivanovlinkissue20275 messages
2014-01-15 23:36:35yselivanovcreate