summary refs log tree commit diff
path: root/scripts/check_auth.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-05 11:25:20 +0000
committerErik Johnston <erik@matrix.org>2015-02-05 11:25:20 +0000
commit6a7e168009b6631fb7deb6bac5351085e993e620 (patch)
treec96b50bc4131a6e7ed7eca3ec33bc62b973c6e3e /scripts/check_auth.py
parentAdd script to check and auth chain and current state of a room (diff)
downloadsynapse-6a7e168009b6631fb7deb6bac5351085e993e620.tar.xz
Print out the auth events on failure
Diffstat (limited to '')
-rw-r--r--scripts/check_auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/check_auth.py b/scripts/check_auth.py
index 341f00e719..b889ac7fa7 100644
--- a/scripts/check_auth.py
+++ b/scripts/check_auth.py
@@ -9,7 +9,6 @@ import json
 import sys
 
 
-
 def check_auth(auth, auth_chain, events):
     auth_chain.sort(key=lambda e: e.depth)
 
@@ -37,6 +36,7 @@ def check_auth(auth, auth_chain, events):
             auth.check(e, auth_events=auth_events)
         except Exception as ex:
             print "Failed:", e.event_id, e.type, e.state_key
+            print "Auth_events:", auth_events
             print ex
             print json.dumps(e.get_dict(), sort_keys=True, indent=4)
             # raise