Skip to content

Commit

Permalink
Extend logs for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
zsculac committed Oct 1, 2024
1 parent c6c1a08 commit 5e402e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/protocols/common/find-nodes-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class FindNodesCommand extends Command {
await this.handleError(
operationId,
blockchain,
`Unable to find enough nodes for operationId: ${operationId}, keyword: ${keyword}. Minimum number of nodes required: ${minAckResponses}`,
`Unable to find enough nodes for operationId: ${operationId}, keyword: ${keyword}. Minimum number of nodes required: ${minAckResponses}, number of nodes found: ${closestNodes.length}`,
this.errorType,
true,
);
Expand Down
6 changes: 5 additions & 1 deletion src/commands/protocols/common/protocol-message-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ class ProtocolMessageCommand extends Command {

const keywordUuid = uuidv5(keyword, uuidv5.URL);

this.logger.debug(
`Sending protocol message with operation id: ${operationId}, keyword uuidv5: ${keywordUuid}`,
);

const response = await this.networkModuleManager.sendMessage(
node.protocol,
node.id,
Expand All @@ -52,7 +56,7 @@ class ProtocolMessageCommand extends Command {
default:
await this.markResponseAsFailed(
command,
`Received unknown message type from node during ${command.name}`,
`Received unknown message type from node during ${command.name}. Unknown message type: ${response.header.messageType}`,
);
return Command.empty();
}
Expand Down

0 comments on commit 5e402e1

Please sign in to comment.