Merge pull request #4737 from matrix-org/erikj/failure_log_tb

Log tracebacks correctly
This commit is contained in:
Erik Johnston 2019-02-25 17:26:30 +00:00 committed by GitHub
commit 65f3fbfbf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 8 deletions

View file

@ -240,8 +240,9 @@ class FederationServer(FederationBase):
f = failure.Failure()
pdu_results[event_id] = {"error": str(e)}
logger.error(
"Failed to handle PDU %s: %s",
event_id, f.getTraceback().rstrip(),
"Failed to handle PDU %s",
event_id,
exc_info=(f.type, f.value, f.getTracebackObject()),
)
yield concurrently_execute(