Created
September 17, 2015 05:18
-
-
Save OptiverTimAll/43263a7a4cf5a298e8f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
import logging | |
from twisted import logger | |
from twisted.internet import defer | |
# Route Python's logging somewhere sensible. | |
logging.basicConfig(level=logging.DEBUG) | |
# Comment out this line to see an actual, useful traceback. | |
logger.globalLogBeginner.beginLoggingTo([logger.STDLibLogObserver()]) | |
@defer.inlineCallbacks | |
def bogus_callback(): | |
yield does_not_exist() | |
returnValue(None) | |
bogus_callback() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment