add tracing when no assignment in candidate selection (#2623)

This commit is contained in:
Robert Habermeier authored and GitHub committed 2021-03-14 21:28:06 +01:00
1 parent 94d50afd4e
commit bb462683b9
1 file changed
+12
@@ -164,6 +164,18 @@ impl JobTrait for CandidateSelectionJob {
}
None => {
assignment_span.add_string_tag("assigned", "false");
let validator_index = validator.index();
let validator_id = validator.id();
tracing::debug!(
target: LOG_TARGET,
?relay_parent,
?validator_index,
?validator_id,
"No assignment. Will not select candidate."
);
return Ok(())
}
};