summary refs log tree commit diff
path: root/synapse/metrics/background_process_metrics.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-09-20 17:05:34 +0100
committerErik Johnston <erik@matrix.org>2018-09-20 17:05:34 +0100
commit94ae1dea3cf746ba5f26b1ab57f945cb2e734ba1 (patch)
tree5aa2a253c0ce676d2666fb439041f52296d02773 /synapse/metrics/background_process_metrics.py
parentNewsfile (diff)
downloadsynapse-94ae1dea3cf746ba5f26b1ab57f945cb2e734ba1.tar.xz
Add missing logger
Diffstat (limited to 'synapse/metrics/background_process_metrics.py')
-rw-r--r--synapse/metrics/background_process_metrics.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/metrics/background_process_metrics.py b/synapse/metrics/background_process_metrics.py
index e5293587e3..173908299c 100644
--- a/synapse/metrics/background_process_metrics.py
+++ b/synapse/metrics/background_process_metrics.py
@@ -13,6 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+import logging
 import threading
 
 import six
@@ -23,6 +24,9 @@ from twisted.internet import defer
 
 from synapse.util.logcontext import LoggingContext, PreserveLoggingContext
 
+logger = logging.getLogger(__name__)
+
+
 _background_process_start_count = Counter(
     "synapse_background_process_start_count",
     "Number of background processes started",