Merge pull request #2529 from matrix-org/rav/fix_transaction_failure_handling

log pdu_failures from incoming transactions
This commit is contained in:
Richard van der Hoff 2017-10-11 17:29:14 +01:00 committed by GitHub
commit 8dd0c85ac5

View file

@ -211,8 +211,9 @@ class FederationServer(FederationBase):
edu.content
)
for failure in getattr(transaction, "pdu_failures", []):
logger.info("Got failure %r", failure)
pdu_failures = getattr(transaction, "pdu_failures", [])
for failure in pdu_failures:
logger.info("Got failure %r", failure)
response = {
"pdus": pdu_results,