From 38a3d72020705e84b675fc836162b3f849cf7ba3 Mon Sep 17 00:00:00 2001 From: ebadiere Date: Wed, 9 Oct 2024 16:50:43 -0600 Subject: [PATCH] feat: Added consensus node information to the logging. Signed-off-by: ebadiere --- packages/relay/src/lib/eth.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/relay/src/lib/eth.ts b/packages/relay/src/lib/eth.ts index 1735fa0b3..3c0273d1b 100644 --- a/packages/relay/src/lib/eth.ts +++ b/packages/relay/src/lib/eth.ts @@ -1489,7 +1489,11 @@ export class EthImpl implements Eth { ): Promise { 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; @@ -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; }