redis-debug-fix
This commit is contained in:
parent
7348e5d9fe
commit
f86da630e8
|
@ -17,10 +17,10 @@ class RedisCache:
|
||||||
if not self._client:
|
if not self._client:
|
||||||
await self.connect()
|
await self.connect()
|
||||||
try:
|
try:
|
||||||
print("[redis] " + command + " " + " ".join(args))
|
print(f"[redis] {command} {args}")
|
||||||
return await self._client.execute_command(command, *args, **kwargs)
|
return await self._client.execute_command(command, *args, **kwargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"[redis] ERROR: {e} with: " + command + " " + " ".join(args))
|
print(f"[redis] ERROR: {e} with: {command} {args}")
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user