Skip to content

Commit

Permalink
Adds more logging
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Blazhukova <[email protected]>
  • Loading branch information
konstantinabl committed Oct 30, 2024
1 parent b84bb7b commit 021a800
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/relay/src/lib/clients/sdkClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,9 @@ export class SDKClient {
try {
this.logger.info(`${requestDetails.formattedRequestId} Execute ${txConstructorName} transaction`);
transactionResponse = await transaction.execute(this.clientMain);

this.logger.info('Transaction Response before receipt', transactionResponse);
transactionId = transactionResponse.transactionId.toString();

this.logger.info('Transaction Id before receipt', transactionId);
// .getReceipt() will throw an error if, in any case, the status !== 22 (SUCCESS).
const transactionReceipt = await transactionResponse.getReceipt(this.clientMain);

Expand Down Expand Up @@ -745,6 +745,7 @@ export class SDKClient {
);

if (!transactionResponse) {
this.logger.info('Transaction Response in if', transactionResponse);

Check warning on line 748 in packages/relay/src/lib/clients/sdkClient.ts

View check run for this annotation

Codecov / codecov/patch

packages/relay/src/lib/clients/sdkClient.ts#L748

Added line #L748 was not covered by tests
throw predefined.INTERNAL_ERROR(
`${requestDetails.formattedRequestId} Transaction execution returns a null value: transactionId=${transaction.transactionId}, callerName=${callerName}, txConstructorName=${txConstructorName}`,
);
Expand Down

0 comments on commit 021a800

Please sign in to comment.