diff options
author | Erik Johnston <erik@matrix.org> | 2015-06-03 17:25:37 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-06-03 17:25:37 +0100 |
commit | 8047fd2434469e8950ba7579ea53c566d47b525c (patch) | |
tree | bbd68e3650aef699742d7838142795f11f5badce /synapse/federation/federation_base.py | |
parent | Merge pull request #180 from matrix-org/erikj/prev_state_context (diff) | |
parent | Rephrase log line (diff) | |
download | synapse-8047fd2434469e8950ba7579ea53c566d47b525c.tar.xz |
Merge pull request #176 from matrix-org/erikj/backfill_auth
Improve backfill.
Diffstat (limited to 'synapse/federation/federation_base.py')
-rw-r--r-- | synapse/federation/federation_base.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/synapse/federation/federation_base.py b/synapse/federation/federation_base.py index f0430b2cb1..299493af91 100644 --- a/synapse/federation/federation_base.py +++ b/synapse/federation/federation_base.py @@ -18,8 +18,6 @@ from twisted.internet import defer from synapse.events.utils import prune_event -from syutil.jsonutil import encode_canonical_json - from synapse.crypto.event_signing import check_event_content_hash from synapse.api.errors import SynapseError @@ -120,16 +118,15 @@ class FederationBase(object): ) except SynapseError: logger.warn( - "Signature check failed for %s redacted to %s", - encode_canonical_json(pdu.get_pdu_json()), - encode_canonical_json(redacted_pdu_json), + "Signature check failed for %s", + pdu.event_id, ) raise if not check_event_content_hash(pdu): logger.warn( - "Event content has been tampered, redacting %s, %s", - pdu.event_id, encode_canonical_json(pdu.get_dict()) + "Event content has been tampered, redacting.", + pdu.event_id, ) defer.returnValue(redacted_event) |