diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-10 10:06:12 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-10 11:37:47 +0000 |
commit | 95aa903ffa77effcbca2a510744c3c3fa9b46ed3 (patch) | |
tree | da5d6eeec5da95549d19e97a072ce575c0fadf41 /synapse/crypto/event_signing.py | |
parent | This is to test jenkins (diff) | |
download | synapse-95aa903ffa77effcbca2a510744c3c3fa9b46ed3.tar.xz |
Try and figure out how and why signatures are being changed.
Diffstat (limited to 'synapse/crypto/event_signing.py')
-rw-r--r-- | synapse/crypto/event_signing.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/crypto/event_signing.py b/synapse/crypto/event_signing.py index 15de0f5ae3..21c19c971d 100644 --- a/synapse/crypto/event_signing.py +++ b/synapse/crypto/event_signing.py @@ -82,8 +82,9 @@ def compute_event_signature(event, signature_name, signing_key): redact_json = tmp_event.get_pdu_json() redact_json.pop("age_ts", None) redact_json.pop("unsigned", None) - logger.debug("Signing event: %s", redact_json) + logger.debug("Signing event: %s", encode_canonical_json(redact_json)) redact_json = sign_json(redact_json, signature_name, signing_key) + logger.debug("Signed event: %s", encode_canonical_json(redact_json)) return redact_json["signatures"] |