redis-debug

This commit is contained in:
Untone 2023-10-13 15:01:35 +03:00
parent 7cd5929df2
commit 882ff39f28

View File

@ -20,7 +20,7 @@ class RedisCache:
print("[redis] " + command + " " + " ".join(args)) print("[redis] " + command + " " + " ".join(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}") print(f"[redis] error: {e}" + command + " " + " ".join(args))
import traceback import traceback
traceback.print_exc() traceback.print_exc()