From a090e7494e8b5cf6c6428f58a07ae5c50e472ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Guillaume?= Date: Tue, 15 Oct 2024 13:06:42 +0000 Subject: [PATCH] fix: more logs --- app/subscriptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/subscriptions.py b/app/subscriptions.py index 5d3ba77..ab2ecfd 100755 --- a/app/subscriptions.py +++ b/app/subscriptions.py @@ -23,6 +23,7 @@ def __init__(self, r: Redis, channels): def run(self): logging.info("listener run") for item in self.pubsub.listen(): + logging.info(f"listener item: {item}") if item["type"] == "message" and item["channel"] == self.KILL_PILL.encode(): break @@ -41,6 +42,7 @@ def run(self): logging.error(f"\nRequest prompt:\n{data["text"]}\n\nError:\n{error_traceback}") answer = f"error on {data["id"]} request, please resend prompt later." + logging.info(f"send answer to {data['id']}") self.redis.set( name=data["id"], # key value=answer, # model output