summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-11-10 16:58:04 +0000
committerRichard van der Hoff <richard@matrix.org>2017-11-10 16:58:04 +0000
commit5d15abb120a483395804d7e500dfa0bc42e49d51 (patch)
treeb9cfaf8c86da043c6179399f89a3c9e7f6ab2276 /synapse/rest
parentCache failures in url_preview handler (diff)
downloadsynapse-5d15abb120a483395804d7e500dfa0bc42e49d51.tar.xz
Bit more logging
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/media/v1/preview_url_resource.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py
index 38e1afd34b..723f7043f4 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -144,6 +144,8 @@ class PreviewUrlResource(Resource):
                 consumeErrors=True
             )
             self._cache[url] = observable
+        else:
+            logger.info("Returning cached response")
 
         og = yield make_deferred_yieldable(observable.observe())
         respond_with_json_bytes(request, 200, og, send_cors=True)