Changing common output messages to Debug.

refs #135
This commit is contained in:
softsimon 2020-10-13 16:00:58 +07:00
parent 4dacf292c2
commit 04ac820ed7
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
3 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -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) {