Skip to content

Commit

Permalink
Add logging to debug log init errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 16, 2025
1 parent 242c391 commit 55a6f87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chatbot_core/chatbot_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import inspect

from abc import ABC, abstractmethod
from os import environ
from queue import Queue
from typing import Optional
from ovos_config.config import Configuration
Expand Down Expand Up @@ -49,6 +50,8 @@ def log(self):
if not self.__log:
# Copy log to support multiple bots in thread with different names
log = init_log(log_name="chatbots")
log.info(f"Log created with level: {log.level}")
log.info(f"default_config={environ.get('OVOS_DEFAULT_CONFIG')}")
self.__log = log.create_logger(self._bot_id)
log.info(f"Initialized logger {self.__log.name} with level: "
f"{self.__log.level}")
Expand Down

0 comments on commit 55a6f87

Please sign in to comment.