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

better logging for approval voting failures (#3180)

parent 39112560
Pipeline #140766 failed with stages
in 27 minutes and 26 seconds
......@@ -2006,17 +2006,27 @@ async fn launch_approval(
candidate_index,
})).await;
}
Ok(Ok(ValidationResult::Invalid(_))) => {
Ok(Ok(ValidationResult::Invalid(reason))) => {
tracing::warn!(
target: LOG_TARGET,
"Detected invalid candidate as an approval checker {:?}",
(candidate_hash, para_id),
?reason,
?candidate_hash,
?para_id,
"Detected invalid candidate as an approval checker.",
);
// TODO: issue dispute, but not for timeouts.
// https://github.com/paritytech/polkadot/issues/2176
}
Ok(Err(_)) => return, // internal error.
Ok(Err(e)) => {
tracing::error!(
target: LOG_TARGET,
err = ?e,
"Failed to validate candidate due to internal error",
);
return
}
}
};
......
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