summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-08-09 10:09:56 +0100
committerErik Johnston <erik@matrix.org>2018-08-09 10:09:56 +0100
commitbf7598f582cdfbd7db0fed55afce28bcc51a4801 (patch)
treee9187ad4117023f2fc47a4ebb70cecc47cff5cd6 /synapse
parentDon't fail requests to unbind 3pids for non supporting ID servers (diff)
downloadsynapse-bf7598f582cdfbd7db0fed55afce28bcc51a4801.tar.xz
Log when we 3pid/unbind request fails
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/identity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py
index a0f5fecc96..5feb3f22a6 100644
--- a/synapse/handlers/identity.py
+++ b/synapse/handlers/identity.py
@@ -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)