diff --git a/backend/src/api/blocks.ts b/backend/src/api/blocks.ts index 04efc19d5..3a63f75df 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -70,7 +70,7 @@ class Blocks { transactions.push(mempool[txIds[i]]); found++; } else { - logger.info(`Fetching block tx ${i} of ${txIds.length}`); + logger.debug(`Fetching block tx ${i} of ${txIds.length}`); const tx = await memPool.getTransactionExtended(txIds[i]); if (tx) { transactions.push(tx); diff --git a/backend/src/api/mempool.ts b/backend/src/api/mempool.ts index cc1ef4e3e..4eedb89a7 100644 --- a/backend/src/api/mempool.ts +++ b/backend/src/api/mempool.ts @@ -94,7 +94,7 @@ class Mempool { } public async updateMempool() { - logger.info('Updating mempool'); + logger.debug('Updating mempool'); const start = new Date().getTime(); let hasChange: boolean = false; const currentMempoolSize = Object.keys(this.mempoolCache).length; @@ -119,9 +119,9 @@ class Mempool { } hasChange = true; if (diff > 0) { - logger.info('Fetched transaction ' + txCount + ' / ' + diff); + logger.debug('Fetched transaction ' + txCount + ' / ' + diff); } else { - logger.info('Fetched transaction ' + txCount); + logger.debug('Fetched transaction ' + txCount); } newTransactions.push(transaction); } else { @@ -181,8 +181,8 @@ class Mempool { const end = new Date().getTime(); const time = end - start; - logger.info(`New mempool size: ${Object.keys(newMempool).length} Change: ${diff}`); - logger.info('Mempool updated in ' + time / 1000 + ' seconds'); + logger.debug(`New mempool size: ${Object.keys(newMempool).length} Change: ${diff}`); + logger.debug('Mempool updated in ' + time / 1000 + ' seconds'); } catch (err) { logger.err('getRawMempool error. ' + err.message || err); } diff --git a/backend/src/api/statistics.ts b/backend/src/api/statistics.ts index c2a4db0c5..8dbeef423 100644 --- a/backend/src/api/statistics.ts +++ b/backend/src/api/statistics.ts @@ -38,7 +38,7 @@ class Statistics { const txPerSecond = memPool.getTxPerSecond(); const vBytesPerSecond = memPool.getVBytesPerSecond(); - logger.info('Running statistics'); + logger.debug('Running statistics'); let memPoolArray: TransactionExtended[] = []; for (const i in currentMempool) {