Skip to content

Commit

Permalink
feat: Added consensus node information to the logging.
Browse files Browse the repository at this point in the history
Signed-off-by: ebadiere <ebadiere@gmail.com>
  • Loading branch information
ebadiere committed Oct 9, 2024
1 parent ae4563d commit 38a3d72
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/relay/src/lib/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,11 @@ export class EthImpl implements Eth {
): Promise<string | JsonRpcError> {
this.logger.error(
e,
`${requestDetails.formattedRequestId} Failed to successfully submit sendRawTransaction for transaction ${transaction}`,
`${
requestDetails.formattedRequestId
} Failed to successfully submit sendRawTransaction for transaction ${transaction} to node ${JSON.stringify(
this.hapiService.getMainClientInstance().network,
)}`,
);
if (e instanceof JsonRpcError) {
return e;
Expand Down Expand Up @@ -1928,7 +1932,12 @@ export class EthImpl implements Eth {
`Invalid contractCallResponse from consensus-node: ${JSON.stringify(contractCallResponse)}`,
);
} catch (e: any) {
this.logger.error(e, `${requestIdPrefix} Failed to successfully submit contractCallQuery`);
this.logger.error(
e,
`${requestIdPrefix} Failed to successfully submit contractCallQuery to consensus-node: ${JSON.stringify(
this.hapiService.getMainClientInstance().network,
)}`,
);
if (e instanceof JsonRpcError) {
return e;
}
Expand Down

0 comments on commit 38a3d72

Please sign in to comment.