Skip to content

Commit 3679a8c

Browse files
presstabFuzzbawls
authored andcommitted
[Trivial] Use LogPrint for repetitive budget logs
Github-Pull: bitcoin#152 Rebased-From: 2024110
1 parent 3b239c1 commit 3679a8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/masternode-budget.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ bool CBudgetManager::AddProposal(CBudgetProposal& budgetProposal)
416416

417417
void CBudgetManager::CheckAndRemove()
418418
{
419-
LogPrintf("CBudgetManager::CheckAndRemove\n");
419+
LogPrint("mnbudget", "CBudgetManager::CheckAndRemove\n");
420420

421421
std::string strError = "";
422422

423-
LogPrintf("CBudgetManager::CheckAndRemove - mapFinalizedBudgets cleanup - size: %d\n", mapFinalizedBudgets.size());
423+
LogPrint("mnbudget", "CBudgetManager::CheckAndRemove - mapFinalizedBudgets cleanup - size: %d\n", mapFinalizedBudgets.size());
424424
std::map<uint256, CFinalizedBudget>::iterator it = mapFinalizedBudgets.begin();
425425
while (it != mapFinalizedBudgets.end()) {
426426
CFinalizedBudget* pfinalizedBudget = &((*it).second);
@@ -434,7 +434,7 @@ void CBudgetManager::CheckAndRemove()
434434
++it;
435435
}
436436

437-
LogPrintf("CBudgetManager::CheckAndRemove - mapProposals cleanup - size: %d\n", mapProposals.size());
437+
LogPrint("mnbudget", "CBudgetManager::CheckAndRemove - mapProposals cleanup - size: %d\n", mapProposals.size());
438438
std::map<uint256, CBudgetProposal>::iterator it2 = mapProposals.begin();
439439
while (it2 != mapProposals.end()) {
440440
CBudgetProposal* pbudgetProposal = &((*it2).second);
@@ -1232,7 +1232,7 @@ void CBudgetManager::Sync(CNode* pfrom, uint256 nProp, bool fPartial)
12321232

12331233
pfrom->PushMessage("ssc", MASTERNODE_SYNC_BUDGET_PROP, nInvCount);
12341234

1235-
LogPrintf("CBudgetManager::Sync - sent %d items\n", nInvCount);
1235+
LogPrint("mnbudget", "CBudgetManager::Sync - sent %d items\n", nInvCount);
12361236

12371237
nInvCount = 0;
12381238

@@ -1259,7 +1259,7 @@ void CBudgetManager::Sync(CNode* pfrom, uint256 nProp, bool fPartial)
12591259
}
12601260

12611261
pfrom->PushMessage("ssc", MASTERNODE_SYNC_BUDGET_FIN, nInvCount);
1262-
LogPrintf("CBudgetManager::Sync - sent %d items\n", nInvCount);
1262+
LogPrint("mnbudget", "CBudgetManager::Sync - sent %d items\n", nInvCount);
12631263
}
12641264

12651265
bool CBudgetManager::UpdateProposal(CBudgetVote& vote, CNode* pfrom, std::string& strError)

0 commit comments

Comments
 (0)