Improve disk cache logging

This commit is contained in:
nymkappa 2022-06-03 18:00:14 +02:00
parent 1efac916b7
commit b60c2a9341
No known key found for this signature in database
GPG key ID: E155910B16E8BD04

View file

@ -103,14 +103,14 @@ class DiskCache {
} }
} }
} catch (e) { } 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); memPool.setMempool(data.mempool);
blocks.setBlocks(data.blocks); blocks.setBlocks(data.blocks);
} catch (e) { } 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));
} }
} }
} }