From bb462683b99744544986a6e17b90d8be59f8280a Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Sun, 14 Mar 2021 15:28:06 -0500 Subject: [PATCH] add tracing when no assignment in candidate selection (#2623) --- polkadot/node/core/candidate-selection/src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/polkadot/node/core/candidate-selection/src/lib.rs b/polkadot/node/core/candidate-selection/src/lib.rs index a7cd459632..077fb340d7 100644 --- a/polkadot/node/core/candidate-selection/src/lib.rs +++ b/polkadot/node/core/candidate-selection/src/lib.rs @@ -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(()) } };