diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-03-16 10:16:59 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-03-16 10:16:59 +0000 |
commit | 835e01fc7047e34a813936544027596627a112df (patch) | |
tree | 3cc833fa3756b7e21750c17f498bf438298cef1f /synapse/handlers | |
parent | Merge branch 'develop' into application-services-txn-reliability (diff) | |
download | synapse-835e01fc7047e34a813936544027596627a112df.tar.xz |
Minor PR comment tweaks.
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/appservice.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py index f3cd458e6b..a24f7f5587 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py @@ -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 |