summary refs log tree commit diff
path: root/synapse/metrics/__init__.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-06-06 07:02:02 +0100
committerRichard van der Hoff <richard@matrix.org>2018-06-06 07:02:02 +0100
commit592ee217a3d0622ace35743dd4bb48fe5560b3ac (patch)
tree0bdf92e711d6d9e1fe52d653821c88bee834dbb1 /synapse/metrics/__init__.py
parentbump version and changelog (diff)
parentFix replication metrics (diff)
downloadsynapse-592ee217a3d0622ace35743dd4bb48fe5560b3ac.tar.xz
Merge commit 'b7e7fd2' into release-v0.31.0
Diffstat (limited to 'synapse/metrics/__init__.py')
-rw-r--r--synapse/metrics/__init__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py
index 56c0032f91..429e79c472 100644
--- a/synapse/metrics/__init__.py
+++ b/synapse/metrics/__init__.py
@@ -60,10 +60,13 @@ class LaterGauge(object):
 
         try:
             calls = self.caller()
-        except Exception as e:
-            print(e)
-            logger.err()
+        except Exception:
+            logger.exception(
+                "Exception running callback for LaterGuage(%s)",
+                self.name,
+            )
             yield g
+            return
 
         if isinstance(calls, dict):
             for k, v in calls.items():