mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 07:51:07 +00:00
approval-distribution: moar logs (#2732)
This commit is contained in:
@@ -526,7 +526,18 @@ impl State {
|
|||||||
} else {
|
} else {
|
||||||
if !entry.knowledge.known_messages.insert(fingerprint.clone()) {
|
if !entry.knowledge.known_messages.insert(fingerprint.clone()) {
|
||||||
// if we already imported an assignment, there is no need to distribute it again
|
// if we already imported an assignment, there is no need to distribute it again
|
||||||
|
tracing::warn!(
|
||||||
|
target: LOG_TARGET,
|
||||||
|
?fingerprint,
|
||||||
|
"Importing locally an already known assignment",
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
tracing::debug!(
|
||||||
|
target: LOG_TARGET,
|
||||||
|
?fingerprint,
|
||||||
|
"Importing locally a new assignment",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -575,7 +586,7 @@ impl State {
|
|||||||
if !peers.is_empty() {
|
if !peers.is_empty() {
|
||||||
tracing::trace!(
|
tracing::trace!(
|
||||||
target: LOG_TARGET,
|
target: LOG_TARGET,
|
||||||
"Sending assignment (block={}, index={})to {} peers",
|
"Sending assignment (block={}, index={}) to {} peers",
|
||||||
block_hash,
|
block_hash,
|
||||||
claimed_candidate_index,
|
claimed_candidate_index,
|
||||||
peers.len(),
|
peers.len(),
|
||||||
@@ -724,7 +735,18 @@ impl State {
|
|||||||
} else {
|
} else {
|
||||||
if !entry.knowledge.known_messages.insert(fingerprint.clone()) {
|
if !entry.knowledge.known_messages.insert(fingerprint.clone()) {
|
||||||
// if we already imported an approval, there is no need to distribute it again
|
// if we already imported an approval, there is no need to distribute it again
|
||||||
|
tracing::warn!(
|
||||||
|
target: LOG_TARGET,
|
||||||
|
?fingerprint,
|
||||||
|
"Importing locally an already known approval",
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
tracing::debug!(
|
||||||
|
target: LOG_TARGET,
|
||||||
|
?fingerprint,
|
||||||
|
"Importing locally a new approval",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user