From 192e9b1ac81abbc453a0db373a4ed56ead01e643 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 6 Jun 2023 11:57:14 -0700 Subject: [PATCH] Add log for handled requests --- neon_llm_chatgpt/rmq.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neon_llm_chatgpt/rmq.py b/neon_llm_chatgpt/rmq.py index a252fa4..52fcceb 100644 --- a/neon_llm_chatgpt/rmq.py +++ b/neon_llm_chatgpt/rmq.py @@ -25,9 +25,11 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import pika + from neon_mq_connector.connector import MQConnector from neon_mq_connector.utils.network_utils import dict_to_b64 from neon_mq_connector.utils.rabbit_utils import create_mq_callback +from ovos_utils.log import LOG from neon_llm_chatgpt.chatgpt import ChatGPT from neon_llm_chatgpt.config import load_config @@ -88,3 +90,4 @@ def handle_request(self, properties=pika.BasicProperties( expiration=str(1000))) channel.basic_ack(method.delivery_tag) + LOG.info(f"Handled request: {message_id}")