Print out the auth events on failure

pull/52/head
Erik Johnston 2015-02-05 11:25:20 +00:00
parent f292ad4b2b
commit 6a7e168009
1 changed files with 1 additions and 1 deletions

View File

@ -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