From c8fb5eab6b14119832118dfe53fc640419d981a5 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 14 Dec 2023 18:41:16 -0800 Subject: [PATCH] Update default LOG.name --- chatbot_core/chatbot_abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chatbot_core/chatbot_abc.py b/chatbot_core/chatbot_abc.py index de2b8a3..f2ba8bc 100644 --- a/chatbot_core/chatbot_abc.py +++ b/chatbot_core/chatbot_abc.py @@ -49,7 +49,8 @@ def __init__(self, bot_id: str, config: dict = None): def log(self): if not self.__log: # Copy log to support multiple bots in thread with different names - self.__log = init_log().create_logger(self._bot_id) + self.__log = init_log( + log_name="chatbots").create_logger(self._bot_id) name = f"{self._bot_id} - " stack = inspect.stack() record = stack[2]