From dcb79da38aa3de559c390418f819ec2e9a0ae1d8 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 4 May 2021 13:40:38 +0100 Subject: More decriptive log when failing to set up jemalloc collector --- synapse/metrics/__init__.py | 4 ++-- 1 file 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 -- cgit 1.5.1