Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
b7b25c4b
Unverified
Commit
b7b25c4b
authored
Jun 04, 2021
by
asynchronous rob
Committed by
GitHub
Jun 04, 2021
Browse files
better logging for approval voting failures (#3180)
parent
39112560
Pipeline
#140766
failed with stages
in 27 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/core/approval-voting/src/lib.rs
View file @
b7b25c4b
...
...
@@ -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
}
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment