Skip to content

Commit

Permalink
Update default LOG.name
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Dec 15, 2023
1 parent d03753a commit c8fb5ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatbot_core/chatbot_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c8fb5ea

Please sign in to comment.