summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-22 10:49:31 +0100
committerErik Johnston <erik@matrix.org>2016-08-22 10:49:31 +0100
commit33f3624ff76dc71e73c997ffef0059b1d004a5e1 (patch)
treed7b183f269b8c1c306843828b047aa5b8b7e00cc /synapse/http
parentAllow request handlers to override metric name (diff)
downloadsynapse-33f3624ff76dc71e73c997ffef0059b1d004a5e1.tar.xz
Add exception logging. Fix typo
Diffstat (limited to '')
-rw-r--r--synapse/http/server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py
index db2127cf8f..168e53ce0c 100644
--- a/synapse/http/server.py
+++ b/synapse/http/server.py
@@ -150,10 +150,10 @@ def wrap_request_handler(request_handler, include_metrics=False):
                     finally:
                         try:
                             request_metrics.stop(
-                                self.clock, request, self.__class__.__name__
+                                self.clock, request
                             )
-                        except:
-                            pass
+                        except Exception as e:
+                            logger.warn("Failed to stop metrics: %r", e)
     return wrapped_request_handler