From f86da630e800f6a9e161ec23879feab24bae3476 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 13 Oct 2023 15:17:44 +0300 Subject: [PATCH] redis-debug-fix --- services/redis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/redis.py b/services/redis.py index 2b6b3369..547bc371 100644 --- a/services/redis.py +++ b/services/redis.py @@ -17,10 +17,10 @@ class RedisCache: if not self._client: await self.connect() try: - print("[redis] " + command + " " + " ".join(args)) + print(f"[redis] {command} {args}") return await self._client.execute_command(command, *args, **kwargs) except Exception as e: - print(f"[redis] ERROR: {e} with: " + command + " " + " ".join(args)) + print(f"[redis] ERROR: {e} with: {command} {args}") import traceback traceback.print_exc()