Skip to content

Commit

Permalink
Fix log init to get per-bot loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Dec 15, 2023
1 parent 95baa4a commit 5c34b6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chatbot_core/chatbot_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5c34b6e

Please sign in to comment.