mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
scripted-diff: LogPrint -> LogDebug
-BEGIN VERIFY SCRIPT- sed -i 's/\<LogPrint\>/LogDebug/g' $( git grep -l '\<LogPrint\>' -- ./contrib/ ./src/ ./test/ ':(exclude)src/logging.h' ) -END VERIFY SCRIPT-
This commit is contained in:
@@ -367,7 +367,7 @@ void BlockManager::FindFilesToPrune(
|
||||
}
|
||||
}
|
||||
|
||||
LogPrint(BCLog::PRUNE, "[%s] target=%dMiB actual=%dMiB diff=%dMiB min_height=%d max_prune_height=%d removed %d blk/rev pairs\n",
|
||||
LogDebug(BCLog::PRUNE, "[%s] target=%dMiB actual=%dMiB diff=%dMiB min_height=%d max_prune_height=%d removed %d blk/rev pairs\n",
|
||||
chain.GetRole(), target / 1024 / 1024, nCurrentUsage / 1024 / 1024,
|
||||
(int64_t(target) - int64_t(nCurrentUsage)) / 1024 / 1024,
|
||||
min_block_to_prune, last_block_can_prune, count);
|
||||
@@ -812,7 +812,7 @@ void BlockManager::UnlinkPrunedFiles(const std::set<int>& setFilesToPrune) const
|
||||
const bool removed_blockfile{fs::remove(m_block_file_seq.FileName(pos), ec)};
|
||||
const bool removed_undofile{fs::remove(m_undo_file_seq.FileName(pos), ec)};
|
||||
if (removed_blockfile || removed_undofile) {
|
||||
LogPrint(BCLog::BLOCKSTORAGE, "Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
|
||||
LogDebug(BCLog::BLOCKSTORAGE, "Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -844,7 +844,7 @@ FlatFilePos BlockManager::FindNextBlockPos(unsigned int nAddSize, unsigned int n
|
||||
assert(chain_type == BlockfileType::ASSUMED);
|
||||
const auto new_cursor = BlockfileCursor{this->MaxBlockfileNum() + 1};
|
||||
m_blockfile_cursors[chain_type] = new_cursor;
|
||||
LogPrint(BCLog::BLOCKSTORAGE, "[%s] initializing blockfile cursor to %s\n", chain_type, new_cursor);
|
||||
LogDebug(BCLog::BLOCKSTORAGE, "[%s] initializing blockfile cursor to %s\n", chain_type, new_cursor);
|
||||
}
|
||||
const int last_blockfile = m_blockfile_cursors[chain_type]->file_num;
|
||||
|
||||
@@ -887,7 +887,7 @@ FlatFilePos BlockManager::FindNextBlockPos(unsigned int nAddSize, unsigned int n
|
||||
pos.nPos = m_blockfile_info[nFile].nSize;
|
||||
|
||||
if (nFile != last_blockfile) {
|
||||
LogPrint(BCLog::BLOCKSTORAGE, "Leaving block file %i: %s (onto %i) (height %i)\n",
|
||||
LogDebug(BCLog::BLOCKSTORAGE, "Leaving block file %i: %s (onto %i) (height %i)\n",
|
||||
last_blockfile, m_blockfile_info[last_blockfile].ToString(), nFile, nHeight);
|
||||
|
||||
// Do not propagate the return code. The flush concerns a previous block
|
||||
|
||||
Reference in New Issue
Block a user