From adaad4b3099ecc749cd2a9d0d0b17ba7aae18e74 Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Tue, 17 Oct 2023 21:53:59 +0100 Subject: [PATCH] log tweaks message.data can be huge, this causes the bus to hang a lot of time just printing a log eg, using self.play_audio may print a lot of hex data test with https://github.com/OpenVoiceOS/ovos-audio/pull/34 and easter eggs skill (portal intent) --- ovos_messagebus/event_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovos_messagebus/event_handler.py b/ovos_messagebus/event_handler.py index 1fa2e39..a211edd 100644 --- a/ovos_messagebus/event_handler.py +++ b/ovos_messagebus/event_handler.py @@ -51,8 +51,8 @@ def on_message(self, message): LOG.debug(deserialized_message.msg_type + f' source: {deserialized_message.context.get("source", [])}' + f' destination: {deserialized_message.context.get("destination", [])}') - LOG.debug(str(deserialized_message.data)) - LOG.debug(SessionManager.get(deserialized_message).serialize()) + #LOG.debug(str(deserialized_message.data)) + LOG.debug("SESSION: " + SessionManager.get(deserialized_message).serialize()) try: self.emitter.emit(deserialized_message.msg_type,