Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

tweak(rnd,redis) Make redis logging more clear (#8014)

Aarushi126d070396ff
diff --git a/rnd/autogpt_server/autogpt_server/data/queue.py b/rnd/autogpt_server/autogpt_server/data/queue.py
index 8a0c8f17a1..57d342f9bc 100644
--- a/rnd/autogpt_server/autogpt_server/data/queue.py
+++ b/rnd/autogpt_server/autogpt_server/data/queue.py
@@ -59,7 +59,7 @@ class AsyncRedisEventQueue(AsyncEventQueue):
async def put(self, execution_result: ExecutionResult):
if self.connection:
message = json.dumps(execution_result.model_dump(), cls=DateTimeEncoder)
- logger.info(f"Put {message}")
+ logger.info(f"Putting execution result to Redis {message}")
await self.connection.lpush(self.queue_name, message) # type: ignore
async def get(self) -> ExecutionResult | None:
@@ -67,7 +67,7 @@ class AsyncRedisEventQueue(AsyncEventQueue):
message = await self.connection.rpop(self.queue_name) # type: ignore
if message is not None and isinstance(message, (str, bytes, bytearray)):
data = json.loads(message)
- logger.info(f"Get {data}")
+ logger.info(f"Getting execution result from Redis {data}")
return ExecutionResult(**data)
return None