Skip to content

Commit

Permalink
Undo debug logs runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Dec 17, 2024
1 parent e37c0ff commit 561542f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion pallets/author-noting/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ pub mod pallet {
ContainerChainBlockInfo<T::AccountId>,
>| {
if let Some(ref mut old_block_info) = maybe_old_block_info {
log::info!("set_latest_author_data: {} > {}", block_info.block_number, old_block_info.block_number);
if block_info.block_number > old_block_info.block_number {
// We only reward author if the block increases
total_weight = total_weight.saturating_add(
Expand Down
4 changes: 0 additions & 4 deletions pallets/collator-assignment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,7 @@ pub mod pallet {
// Avoid division by zero below
return None;
}

let author_index = u64::from(slot) % collators.len() as u64;

log::info!("pallet_collator_assignment author_for_slot: slot {} index {} for para_id {}", u64::from(slot), author_index, u32::from(para_id));

collators.get(author_index as usize).cloned()
}

Expand Down
4 changes: 2 additions & 2 deletions pallets/inflation-rewards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ pub mod pallet {
}
}
Err(e) => {
log::error!("Fail to distribute rewards: {:?}", e)
log::debug!("Fail to distribute rewards: {:?}", e)
}
}
} else {
Expand Down Expand Up @@ -284,7 +284,7 @@ impl<T: Config> AuthorNotingHook<T::AccountId> for Pallet<T> {
}
}
Err(e) => {
log::error!("Fail to distribute rewards: {:?}", e)
log::debug!("Fail to distribute rewards: {:?}", e)
}
}
// we remove the para id from container-chains to reward
Expand Down

0 comments on commit 561542f

Please sign in to comment.