mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-07-28 00:59:03 +02:00
util/log: Provide util::log::NO_RATE_LIMIT to avoid rate limits
This commit is contained in:
@@ -2864,8 +2864,8 @@ static void UpdateTipLog(
|
||||
|
||||
AssertLockHeld(::cs_main);
|
||||
|
||||
// Disable rate limiting in LogPrintLevel_ so this source location may log during IBD.
|
||||
LogPrintLevel_(BCLog::LogFlags::ALL, util::log::Level::Info, /*should_ratelimit=*/false, "%s%s: new best=%s height=%d version=0x%08x log2_work=%f tx=%lu date='%s' progress=%f cache=%.1fMiB(%utxo)%s\n",
|
||||
// Disable rate limiting as this may log frequently during IBD.
|
||||
LogInfo(util::log::NO_RATE_LIMIT, "%s%s: new best=%s height=%d version=0x%08x log2_work=%f tx=%lu date='%s' progress=%f cache=%.1fMiB(%utxo)%s\n",
|
||||
prefix, func_name,
|
||||
tip->GetBlockHash().ToString(), tip->nHeight, tip->nVersion,
|
||||
log(tip->nChainWork.getdouble()) / log(2.0), tip->m_chain_tx_count,
|
||||
|
||||
Reference in New Issue
Block a user