From 02faeede88f6ce216e80221bb1253998671b6406 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Sat, 22 May 2021 03:25:41 -0400 Subject: [PATCH] Some more debug logging (#3073) * log validator index when importing statement * log validation failures in debug --- polkadot/node/core/backing/src/lib.rs | 1 + polkadot/node/core/candidate-validation/src/lib.rs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/polkadot/node/core/backing/src/lib.rs b/polkadot/node/core/backing/src/lib.rs index 49d739ff2c..549659e380 100644 --- a/polkadot/node/core/backing/src/lib.rs +++ b/polkadot/node/core/backing/src/lib.rs @@ -768,6 +768,7 @@ impl CandidateBackingJob { tracing::debug!( target: LOG_TARGET, statement = ?statement.payload().to_compact(), + validator_index = statement.validator_index().0, "Importing statement", ); diff --git a/polkadot/node/core/candidate-validation/src/lib.rs b/polkadot/node/core/candidate-validation/src/lib.rs index 11537b2e3e..1f27e1c55e 100644 --- a/polkadot/node/core/candidate-validation/src/lib.rs +++ b/polkadot/node/core/candidate-validation/src/lib.rs @@ -404,6 +404,14 @@ async fn validate_candidate_exhaustive( ) .await; + if let Err(ref e) = result { + tracing::debug!( + target: LOG_TARGET, + error = ?e, + "Failed to validate candidate", + ); + } + let result = match result { Err(ValidationError::InternalError(e)) => Err(ValidationFailed(e)),