Minor PR comment tweaks.

This commit is contained in:
Kegan Dougal 2015-03-16 10:16:59 +00:00
parent f9232c7917
commit 835e01fc70
5 changed files with 19 additions and 13 deletions

View file

@ -27,8 +27,14 @@ logger = logging.getLogger(__name__)
def log_failure(failure):
logger.error("Application Services Failure: %s", failure.value)
logger.error(failure.getTraceback())
logger.error(
"Application Services Failure",
exc_info=(
failure.type,
failure.value,
failure.getTracebackObject()
)
)
# NB: Purposefully not inheriting BaseHandler since that contains way too much