diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-10 16:58:04 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-10 16:58:04 +0000 |
commit | 5d15abb120a483395804d7e500dfa0bc42e49d51 (patch) | |
tree | b9cfaf8c86da043c6179399f89a3c9e7f6ab2276 | |
parent | Cache failures in url_preview handler (diff) | |
download | synapse-5d15abb120a483395804d7e500dfa0bc42e49d51.tar.xz |
Bit more logging
-rw-r--r-- | synapse/rest/media/v1/preview_url_resource.py | 2 |
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) |