From 46a6c58d4963470857df9cad02ec97d3055f2fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 15 Mar 2021 14:21:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20file=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was broken when debug logging was disabled due to timeThis decorator. --- src/octoprint/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/__init__.py b/src/octoprint/util/__init__.py index ac27abb8e..b8de4d210 100644 --- a/src/octoprint/util/__init__.py +++ b/src/octoprint/util/__init__.py @@ -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)),