summary refs log tree commit diff
path: root/synapse/metrics/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-04 13:40:38 +0100
committerErik Johnston <erik@matrix.org>2021-05-04 13:40:38 +0100
commitdcb79da38aa3de559c390418f819ec2e9a0ae1d8 (patch)
tree356dfb1e771a06855becf16f9d4f9029c80097f2 /synapse/metrics/__init__.py
parentApply suggestions from code review (diff)
downloadsynapse-dcb79da38aa3de559c390418f819ec2e9a0ae1d8.tar.xz
More decriptive log when failing to set up jemalloc collector
Diffstat (limited to 'synapse/metrics/__init__.py')
-rw-r--r--synapse/metrics/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py
index dee12cbc49..e9cbf88f1c 100644
--- a/synapse/metrics/__init__.py
+++ b/synapse/metrics/__init__.py
@@ -754,8 +754,8 @@ def _setup_jemalloc_stats():
 
 try:
     _setup_jemalloc_stats()
-except Exception:
-    logger.info("Failed to setup collector to record jemalloc stats.")
+except Exception as e:
+    logger.info("Failed to setup collector to record jemalloc stats: %s", e)
 
 try:
     # Ensure the reactor has all the attributes we expect