mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Some more debug logging (#3073)
* log validator index when importing statement * log validation failures in debug
This commit is contained in:
committed by
GitHub
parent
44d02faa62
commit
02faeede88
@@ -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)),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user