Skip to content

Commit

Permalink
log tweaks
Browse files Browse the repository at this point in the history
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 OpenVoiceOS/ovos-audio#34 and easter eggs skill (portal intent)
  • Loading branch information
JarbasAl committed Oct 17, 2023
1 parent 0d86006 commit adaad4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovos_messagebus/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit adaad4b

Please sign in to comment.