Skip to content

Commit 55a6f87

Browse files
committed
Add logging to debug log init errors
1 parent 242c391 commit 55a6f87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chatbot_core/chatbot_abc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import inspect
2323

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

0 commit comments

Comments
 (0)