From 920706fbab14af404a9386d800cedbe05c6ee15d Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 22 Aug 2024 12:49:55 +0800 Subject: [PATCH] Lazy evaluating for debug string command --- pytec/pytec/aioclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/pytec/aioclient.py b/pytec/pytec/aioclient.py index df7fef9..bd46c79 100644 --- a/pytec/pytec/aioclient.py +++ b/pytec/pytec/aioclient.py @@ -70,7 +70,7 @@ class AsyncioClient: line = await self._read_write(command) response = json.loads(line) - logging.debug(f"{command}: {response}") + logging.debug("%s: %s", command, response) if "error" in response: raise CommandError(response["error"]) return response