From 146bc2b564bb64ec77805d1f1f4ca85d25cc97fb Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 20 Jun 2019 10:34:38 +0100 Subject: [PATCH] Fix logging error when a tampered event is detected. --- changelog.d/5500.bugfix | 1 + synapse/federation/federation_base.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 changelog.d/5500.bugfix diff --git a/changelog.d/5500.bugfix b/changelog.d/5500.bugfix new file mode 100644 index 000000000000..624c678435cf --- /dev/null +++ b/changelog.d/5500.bugfix @@ -0,0 +1 @@ +Fix logging error when a tampered event is detected. diff --git a/synapse/federation/federation_base.py b/synapse/federation/federation_base.py index 58b929363fbf..1e925b19e7b3 100644 --- a/synapse/federation/federation_base.py +++ b/synapse/federation/federation_base.py @@ -163,7 +163,6 @@ def callback(_, pdu): logger.warning( "Event %s content has been tampered, redacting", pdu.event_id, - pdu.get_pdu_json(), ) return redacted_event