Skip to content

Instantly share code, notes, and snippets.

@OptiverTimAll
Created September 17, 2015 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OptiverTimAll/43263a7a4cf5a298e8f5 to your computer and use it in GitHub Desktop.
Save OptiverTimAll/43263a7a4cf5a298e8f5 to your computer and use it in GitHub Desktop.
#!/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