0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-16 23:11:34 +01:00

Log when we 3pid/unbind request fails

This commit is contained in:
Erik Johnston 2018-08-09 10:09:56 +01:00
parent 360ba89c50
commit bf7598f582

View file

@ -188,8 +188,10 @@ class IdentityHandler(BaseHandler):
except HttpResponseException as e:
if e.code in (400, 404, 501,):
# The remote server probably doesn't support unbinding (yet)
logger.warn("Received %d response while unbinding threepid", e.code)
defer.returnValue(False)
else:
logger.error("Failed to unbind threepid on identity server: %s", e)
raise SynapseError(502, "Failed to contact identity server")
defer.returnValue(True)