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)