0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 03:13:52 +01:00

Add logging

This commit is contained in:
Daniel Wagner-Hall 2015-10-13 17:22:50 +01:00
parent bb407cd624
commit b68db61222

View file

@ -498,8 +498,8 @@ class RoomMembershipRestServlet(ClientV1RestServlet):
if "mxid" in data:
# TODO: Validate the response signature and such
defer.returnValue(data["mxid"])
except IOError:
# TODO: Log something maybe?
except IOError as e:
logger.warn("Error from identity server lookup: %s" % (e,))
defer.returnValue(None)
@defer.inlineCallbacks