Unverified Commit f25465e8 authored by asynchronous rob's avatar asynchronous rob Committed by GitHub
Browse files

Some more debug logging (#3073)

* log validator index when importing statement

* log validation failures in debug
parent bb1d6e7d
Pipeline #139028 passed with stages
in 27 minutes and 44 seconds
......@@ -768,6 +768,7 @@ impl CandidateBackingJob {
tracing::debug!(
target: LOG_TARGET,
statement = ?statement.payload().to_compact(),
validator_index = statement.validator_index().0,
"Importing statement",
);
......
......@@ -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)),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment