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 adaad4b commit 6516b26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ovos_messagebus/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ def on_message(self, message):
if deserialized_message.msg_type not in filter_ogs:
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("SESSION: " + SessionManager.get(deserialized_message).serialize())
f' destination: {deserialized_message.context.get("destination", [])}\n'
f'SESSION: {SessionManager.get(deserialized_message).serialize()}')

try:
self.emitter.emit(deserialized_message.msg_type,
Expand Down

0 comments on commit 6516b26

Please sign in to comment.