🐛 Fix file API

Was broken when debug logging was disabled due to timeThis decorator.
This commit is contained in:
Gina Häußge committed 2021-03-15 14:21:15 +01:00
1 parent e74721c07a
commit 46a6c58d49
1 file changed
+1 -1
+1 -1
View File
@@ -1914,7 +1914,7 @@ def time_this(
@wraps(f)
def wrapper(*args, **kwargs):
data = {"func": func}
data = {"func": func, "func_args": "?", "func_kwargs": "?"}
if incl_func_args and logger.isEnabledFor(logging.DEBUG):
data.update(
func_args=",".join(map(repr, args)),