From 1db3a3ccb9ae40c0c143f7b113c944bac5dd9ea2 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 6fdfc60..d88ebfe 100644 --- a/pytec/pytec/aioclient.py +++ b/pytec/pytec/aioclient.py @@ -97,7 +97,7 @@ class Client: line = await asyncio.shield(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