Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions validator/sawtooth_validator/networking/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,16 @@ def set_message_priority(self, message_type, priority):
def _process(self, message_id):
message_info = self._message_information[message_id]

LOGGER.debug("Received a message {} with contents {}".format(message_id, message_info))

try:
preprocessor = self._preprocessors[message_info.message_type]
except KeyError:
self._process_next(message_id)
return

LOGGER.debug("Message processors: {}".format(preprocessor))

def do_next(result):
message_info = self._message_information[message_id]

Expand Down Expand Up @@ -283,6 +287,8 @@ def do_next(result):
LOGGER.exception(
"Unhandled exception while determining next")

LOGGER.debug("Processing message with content {} and handler {}".format(message_info.content, handler_manager.handler))

handler_manager.execute(
message_info.connection_id,
message_info.content,
Expand Down