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:
parent
360ba89c50
commit
bf7598f582
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue