mirror of
https://mau.dev/maunium/synapse.git
synced 2025-01-21 13:41:59 +01:00
Fix typo where we used wrong var.
This commit is contained in:
parent
fd9a8db7ea
commit
d5ae67e67d
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ def time_function(f):
|
||||||
_log_debug_as_f(
|
_log_debug_as_f(
|
||||||
f,
|
f,
|
||||||
"[FUNC START] {%s-%d}",
|
"[FUNC START] {%s-%d}",
|
||||||
(func_name, _TIME_FUNC_ID),
|
(func_name, id),
|
||||||
)
|
)
|
||||||
|
|
||||||
r = f(*args, **kwargs)
|
r = f(*args, **kwargs)
|
||||||
|
@ -111,7 +111,7 @@ def time_function(f):
|
||||||
_log_debug_as_f(
|
_log_debug_as_f(
|
||||||
f,
|
f,
|
||||||
"[FUNC END] {%s-%d} %f",
|
"[FUNC END] {%s-%d} %f",
|
||||||
(func_name, _TIME_FUNC_ID, end-start,),
|
(func_name, id, end-start,),
|
||||||
)
|
)
|
||||||
|
|
||||||
return r
|
return r
|
||||||
|
|
Loading…
Add table
Reference in a new issue