Loglevel fix
This commit is contained in:
@@ -771,7 +771,7 @@ bool SideChain::add_block(const PoolBlock& block)
|
||||
// Extra log for blocks near checkpoint height during recovery
|
||||
const uint64_t cp_height = get_latest_checkpoint_height();
|
||||
if (block.m_sidechainHeight >= cp_height && block.m_sidechainHeight <= cp_height + 5) {
|
||||
LOGINFO(0, "RECOVERY DEBUG: add_block height " << block.m_sidechainHeight
|
||||
LOGINFO(6, "RECOVERY DEBUG: add_block height " << block.m_sidechainHeight
|
||||
<< " parent=" << block.m_parent);
|
||||
}
|
||||
|
||||
@@ -1633,7 +1633,7 @@ void SideChain::verify_loop(PoolBlock* block)
|
||||
else {
|
||||
// Extra logging for blocks near checkpoint during recovery
|
||||
if (block->m_sidechainHeight <= get_latest_checkpoint_height() + 10) {
|
||||
LOGINFO(0, "RECOVERY DEBUG: VERIFIED block " << block->m_sidechainHeight
|
||||
LOGINFO(6, "RECOVERY DEBUG: VERIFIED block " << block->m_sidechainHeight
|
||||
<< " (parent " << (block->m_sidechainHeight > 0 ? block->m_sidechainHeight - 1 : 0) << " was verified)");
|
||||
}
|
||||
LOGINFO(3, "verified block at height = " << block->m_sidechainHeight <<
|
||||
@@ -1765,7 +1765,7 @@ void SideChain::verify(PoolBlock* block)
|
||||
if (!it->second->m_verified) {
|
||||
// Only log for blocks close to checkpoint to reduce spam
|
||||
if (block->m_sidechainHeight <= get_latest_checkpoint_height() + 10) {
|
||||
LOGINFO(0, "RECOVERY DEBUG: block " << block->m_sidechainHeight << " waiting for parent "
|
||||
LOGINFO(6, "RECOVERY DEBUG: block " << block->m_sidechainHeight << " waiting for parent "
|
||||
<< it->second->m_sidechainHeight << " (parent verified=" << (it->second->m_verified ? 1 : 0)
|
||||
<< " invalid=" << (it->second->m_invalid ? 1 : 0) << ")");
|
||||
}
|
||||
@@ -2693,7 +2693,7 @@ void SideChain::get_missing_blocks(unordered_set<hash>& missing_blocks) const
|
||||
missing_blocks.insert(b.second->m_parent);
|
||||
// Log missing parents near checkpoint
|
||||
if (b.second->m_sidechainHeight <= cp_height + 5) {
|
||||
LOGINFO(0, "RECOVERY DEBUG: block " << b.second->m_sidechainHeight
|
||||
LOGINFO(6, "RECOVERY DEBUG: block " << b.second->m_sidechainHeight
|
||||
<< " needs missing parent " << b.second->m_parent);
|
||||
}
|
||||
}
|
||||
@@ -2716,7 +2716,7 @@ void SideChain::get_missing_blocks(unordered_set<hash>& missing_blocks) const
|
||||
|
||||
// Summary log for recovery debugging
|
||||
if (!missing_blocks.empty() && lowest_unverified <= cp_height + 10) {
|
||||
LOGINFO(0, "RECOVERY DEBUG: " << missing_blocks.size() << " missing blocks, lowest unverified=" << lowest_unverified);
|
||||
LOGINFO(6, "RECOVERY DEBUG: " << missing_blocks.size() << " missing blocks, lowest unverified=" << lowest_unverified);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user