diff --git a/packages/relay/src/lib/clients/mirrorNodeClient.ts b/packages/relay/src/lib/clients/mirrorNodeClient.ts index c2d246fa9..46eb765bd 100644 --- a/packages/relay/src/lib/clients/mirrorNodeClient.ts +++ b/packages/relay/src/lib/clients/mirrorNodeClient.ts @@ -369,7 +369,13 @@ export class MirrorNodeClient { const ms = Date.now() - start; if (this.logger.isLevelEnabled('debug')) { - this.logger.debug(`${requestDetails.formattedRequestId} [${method}] ${path} ${response.status} ${ms} ms`); + this.logger.debug( + `${ + requestDetails.formattedRequestId + } Successfully received response from mirror node server: method=${method}, path=${path}, status=${ + response.status + }, duration:${ms}ms, data:${JSON.stringify(response.data)}`, + ); } this.mirrorResponseHistogram.labels(pathLabel, response.status?.toString()).observe(ms); return response.data; @@ -428,7 +434,9 @@ export class MirrorNodeClient { if (error.response && acceptedErrorResponses?.includes(effectiveStatusCode)) { if (this.logger.isLevelEnabled('debug')) { - this.logger.debug(`${requestIdPrefix} [${method}] ${path} ${effectiveStatusCode} status`); + this.logger.debug( + `${requestIdPrefix} An accepted error occurred while communicating with the mirror node server: method=${method}, path=${path}, status=${effectiveStatusCode}`, + ); } return null; } @@ -445,7 +453,7 @@ export class MirrorNodeClient { } else { this.logger.error( new Error(error.message), - `${requestIdPrefix} [${method}] ${path} ${effectiveStatusCode} status`, + `${requestIdPrefix} Error encountered while communicating with the mirror node server: method=${method}, path=${path}, status=${effectiveStatusCode}`, ); } @@ -1036,6 +1044,7 @@ export class MirrorNodeClient { if (address === ethers.ZeroAddress) return []; const queryParams = this.prepareLogsParams(contractLogsResultsParams, limitOrderParams); + const apiEndpoint = MirrorNodeClient.GET_CONTRACT_RESULT_LOGS_BY_ADDRESS_ENDPOINT.replace( MirrorNodeClient.ADDRESS_PLACEHOLDER, address,