From 2f56281031fd06fea87e065f919d4594498b3b57 Mon Sep 17 00:00:00 2001
From: atse <atse@m-labs.hk>
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