From 6b644ee03358bada78e7344d8785d8ec1b96814b Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 11 Dec 2023 11:27:50 -0800 Subject: [PATCH] Update `LOG` to `self.log` Reduce info log to debug --- chatbot_core/v1/__init__.py | 2 +- chatbot_core/v2/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chatbot_core/v1/__init__.py b/chatbot_core/v1/__init__.py index a55a26b..d77bdcd 100644 --- a/chatbot_core/v1/__init__.py +++ b/chatbot_core/v1/__init__.py @@ -37,8 +37,8 @@ class ChatBot(KlatApi, ChatBotABC): def __init__(self, *args, **kwargs): socket, domain, username, password, on_server, is_prompter = \ self.parse_init(*args, **kwargs) - LOG.info(f"Starting {username}") ChatBotABC.__init__(self, username) + self.log.info(f"Starting {username}") if not socket: from ovos_config.config import Configuration sio_config = Configuration().get("socket_io", {}) diff --git a/chatbot_core/v2/__init__.py b/chatbot_core/v2/__init__.py index 33567d5..b71a820 100644 --- a/chatbot_core/v2/__init__.py +++ b/chatbot_core/v2/__init__.py @@ -290,7 +290,7 @@ def sync(self, vhost: str = None, exchange: str = None, queue: str = None, reque :param request_data: data to publish in sync """ curr_time = int(time.time()) - self.log.info(f'{curr_time} Emitting sync message from {self.nick}') + self.log.debug(f'{curr_time} Emitting sync message from {self.nick}') self._on_connect() def discuss_response(self, shout: str, cid: str = None):