log pdu_failures from incoming transactions

... even if we have no EDUs.

This appears to have been introduced in
476899295f.
This commit is contained in:
Richard van der Hoff 2017-10-11 14:25:16 +01:00
parent 4d24becf7f
commit b75d443caf

View File

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