Some more debug logging (#3073)

* log validator index when importing statement

* log validation failures in debug
This commit is contained in:
Robert Habermeier authored and GitHub committed 2021-05-22 09:25:41 +02:00
1 parent 44d02faa62
commit 02faeede88
2 files changed
+9

No files matched your search

+1
View File
@@ -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)),