Skip to content

Commit d5b1128

Browse files
authored
logs cleanup + updates (#99)
1 parent 8835c65 commit d5b1128

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/controller/tx-update-listener.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ export const startTxUpdatesNotificationListener = async (
2929
(sub) => sub.requestId === parsedPayload.identifier,
3030
);
3131

32-
server.log.debug(
33-
`Index of the subscription: ${index}: ${subscriptionsData}`,
34-
);
3532
if (index == -1) {
3633
return;
3734
}

worker/controller/blockchainReader.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ export const checkForMinedTransactionsOnBlockchain = async (
4444
);
4545

4646
for (let txReceipt of txReceipts) {
47+
if (!txReceipt) {
48+
continue;
49+
}
4750
const txData = transactions.find(
4851
(tx) => tx.txHash === txReceipt.transactionHash,
4952
);
5053
if (txData) {
5154
server.log.debug(
52-
`Got receipt for tx: ${txData.txHash} ${txData.identifier}, ${txReceipt.effectiveGasPrice}`,
55+
`Got receipt for tx: ${txData.txHash}, queueId: ${txData.identifier}, effectiveGasPrice: ${txReceipt.effectiveGasPrice}`,
5356
);
5457
await updateTransactionState(
5558
knex,

0 commit comments

Comments
 (0)