Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce approval log #1789

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions core/parachain/approval/approval_distribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1560,13 +1560,13 @@ namespace kagome::parachain {
return ApprovalCheckResult::Bad;
}

logger_->info(
"Importing approval vote.(validator index={}, validator id={}, "
"candidate hash={}, para id={})",
approval.payload.ix,
pubkey,
approved_candidate_hash,
candidate_entry.candidate.descriptor.para_id);
SL_DEBUG(logger_,
"Importing approval vote.(validator index={}, validator id={}, "
"candidate hash={}, para id={})",
approval.payload.ix,
pubkey,
approved_candidate_hash,
candidate_entry.candidate.descriptor.para_id);
advance_approval_state(block_entry,
approved_candidate_hash,
candidate_entry,
Expand Down Expand Up @@ -1599,7 +1599,8 @@ namespace kagome::parachain {
return;
}

logger_->info(
SL_DEBUG(
logger_,
"Import assignment. (peer id={}, block hash={}, validator index={})",
source ? fmt::format("{}", source->get()) : "our",
block_hash,
Expand Down Expand Up @@ -1787,11 +1788,11 @@ namespace kagome::parachain {
return;
}

logger_->info(
"Import approval. (peer id={}, block hash={}, validator index={})",
source ? fmt::format("{}", source->get()) : "our",
block_hash,
validator_index);
SL_DEBUG(logger_,
"Import approval. (peer id={}, block hash={}, validator index={})",
source ? fmt::format("{}", source->get()) : "our",
block_hash,
validator_index);

auto &entry = opt_entry->get();
if (candidate_index >= entry.candidates.size()) {
Expand Down Expand Up @@ -2103,11 +2104,11 @@ namespace kagome::parachain {
candidate_index,
std::move(peers));

logger_->info(
"Distributing assignment on candidate (block hash={}, candidate "
"index={})",
indirect_cert.block_hash,
candidate_index);
SL_DEBUG(logger_,
"Distributing assignment on candidate (block hash={}, candidate "
"index={})",
indirect_cert.block_hash,
candidate_index);

auto se = pm_->getStreamEngine();
BOOST_ASSERT(se);
Expand Down