mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 23:24:54 -04:00
Merge pull request #4737 from matrix-org/erikj/failure_log_tb
Log tracebacks correctly
This commit is contained in:
commit
65f3fbfbf7
5 changed files with 14 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue