mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Print out the auth events on failure
This commit is contained in:
parent
f292ad4b2b
commit
6a7e168009
@ -9,7 +9,6 @@ import json
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def check_auth(auth, auth_chain, events):
|
def check_auth(auth, auth_chain, events):
|
||||||
auth_chain.sort(key=lambda e: e.depth)
|
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)
|
auth.check(e, auth_events=auth_events)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print "Failed:", e.event_id, e.type, e.state_key
|
print "Failed:", e.event_id, e.type, e.state_key
|
||||||
|
print "Auth_events:", auth_events
|
||||||
print ex
|
print ex
|
||||||
print json.dumps(e.get_dict(), sort_keys=True, indent=4)
|
print json.dumps(e.get_dict(), sort_keys=True, indent=4)
|
||||||
# raise
|
# raise
|
||||||
|
Loading…
Reference in New Issue
Block a user