From 5c34b6e5c5cf7a657cce852feb0484a861eea2c7 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 14 Dec 2023 17:54:57 -0800 Subject: [PATCH] Fix log init to get per-bot loggers --- chatbot_core/chatbot_abc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chatbot_core/chatbot_abc.py b/chatbot_core/chatbot_abc.py index 51995ae..58d40f5 100644 --- a/chatbot_core/chatbot_abc.py +++ b/chatbot_core/chatbot_abc.py @@ -21,7 +21,6 @@ import time from abc import ABC, abstractmethod -from copy import deepcopy from queue import Queue from typing import Optional from ovos_config.config import Configuration @@ -49,7 +48,7 @@ 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 = deepcopy(init_log(log_name=self._bot_id)) + self.__log = init_log().create_logger(self._bot_id) return self.__log @abstractmethod