summary refs log tree commit diff
path: root/synapse/crypto
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-04-24 17:01:34 +0100
committerMark Haines <mark.haines@matrix.org>2015-04-24 17:01:34 +0100
commit288702170d6fc8b44926856b37e4a0e1bb5b2ac4 (patch)
treec4819aaad46052f885540513b87e807a7d2e6cc9 /synapse/crypto
parentMerge branch 'develop' into key_distribution (diff)
downloadsynapse-288702170d6fc8b44926856b37e4a0e1bb5b2ac4.tar.xz
Add config for setting the perspective servers
Diffstat (limited to 'synapse/crypto')
-rw-r--r--synapse/crypto/keyring.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/crypto/keyring.py b/synapse/crypto/keyring.py
index d248776bc1..f7ae227916 100644
--- a/synapse/crypto/keyring.py
+++ b/synapse/crypto/keyring.py
@@ -42,7 +42,7 @@ class Keyring(object):
         self.clock = hs.get_clock()
         self.client = hs.get_http_client()
         self.config = hs.get_config()
-        self.perspective_servers = {}
+        self.perspective_servers = self.config.perspectives
         self.hs = hs
 
     @defer.inlineCallbacks
@@ -111,6 +111,10 @@ class Keyring(object):
                 )
                 break
             except:
+                logging.info(
+                    "Unable to getting key %r for %r from %r",
+                    key_ids, server_name, perspective_name,
+                )
                 pass
 
         limiter = yield get_retry_limiter(