Merge pull request #1801 from mempool/nymkappa/feature/cache-log

Improve disk cache logging
This commit is contained in:
wiz 2022-06-04 01:21:55 +09:00 committed by GitHub
commit 412f118d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,14 +103,14 @@ class DiskCache {
}
}
} catch (e) {
logger.debug('Error parsing ' + fileName + '. Skipping.');
logger.info('Error parsing ' + fileName + '. Skipping. Reason: ' + (e instanceof Error ? e.message : e));
}
}
memPool.setMempool(data.mempool);
blocks.setBlocks(data.blocks);
} catch (e) {
logger.warn('Failed to parse mempoool and blocks cache. Skipping.');
logger.warn('Failed to parse mempoool and blocks cache. Skipping. Reason: ' + (e instanceof Error ? e.message : e));
}
}
}