yet another set of logging improvements (#2638)

This commit is contained in:
Robert Habermeier
2021-03-17 15:53:37 -04:00
committed by GitHub
parent 04f04ea6db
commit cd2b745b28
2 changed files with 51 additions and 17 deletions
+21 -5
View File
@@ -827,11 +827,27 @@ async fn handle_approved_ancestor(
);
}
Some(a_entry) => {
let our_assignment = a_entry.our_assignment();
tracing::debug!(
target: LOG_TARGET,
?our_assignment,
);
match a_entry.our_assignment() {
None => tracing::debug!(
target: LOG_TARGET,
?candidate_hash,
?block_hash,
"no assignment."
),
Some(a) => {
let tranche = a.tranche();
let triggered = a.triggered();
tracing::debug!(
target: LOG_TARGET,
?candidate_hash,
?block_hash,
tranche,
triggered,
"assigned"
);
}
}
}
}
}