Log tracebacks correctly

This commit is contained in:
Erik Johnston 2019-02-25 16:56:41 +00:00
parent 5b9786ee00
commit c7b333c545
3 changed files with 12 additions and 7 deletions

View file

@ -239,8 +239,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(