redis-debug-fix

This commit is contained in:
Untone 2023-10-13 15:17:44 +03:00
parent 7348e5d9fe
commit f86da630e8

View File

@ -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()