From d5ae67e67d90e745b8eb06661af60370c68f813b Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 6 Jan 2015 16:05:01 +0000 Subject: [PATCH] Fix typo where we used wrong var. --- synapse/util/logutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/util/logutils.py b/synapse/util/logutils.py index c4dfb69c5..fd9ac4d4d 100644 --- a/synapse/util/logutils.py +++ b/synapse/util/logutils.py @@ -102,7 +102,7 @@ def time_function(f): _log_debug_as_f( f, "[FUNC START] {%s-%d}", - (func_name, _TIME_FUNC_ID), + (func_name, id), ) r = f(*args, **kwargs) @@ -111,7 +111,7 @@ def time_function(f): _log_debug_as_f( f, "[FUNC END] {%s-%d} %f", - (func_name, _TIME_FUNC_ID, end-start,), + (func_name, id, end-start,), ) return r