mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 14:01:06 +00:00
demote warnings due to disconnected dispute coordinator (#3672)
* demote warnings due to disconnected dispute coordinator * cargo fmt Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at>
This commit is contained in:
committed by
GitHub
parent
ad0e42537d
commit
9a1b614c47
@@ -920,7 +920,7 @@ async fn handle_actions(
|
|||||||
|
|
||||||
match confirmation_rx.await {
|
match confirmation_rx.await {
|
||||||
Err(oneshot::Canceled) => {
|
Err(oneshot::Canceled) => {
|
||||||
tracing::warn!(target: LOG_TARGET, "Dispute coordinator confirmation lost",)
|
tracing::debug!(target: LOG_TARGET, "Dispute coordinator confirmation lost",)
|
||||||
},
|
},
|
||||||
Ok(ImportStatementsResult::ValidImport) => {},
|
Ok(ImportStatementsResult::ValidImport) => {},
|
||||||
Ok(ImportStatementsResult::InvalidImport) => tracing::warn!(
|
Ok(ImportStatementsResult::InvalidImport) => tracing::warn!(
|
||||||
|
|||||||
@@ -901,7 +901,7 @@ impl CandidateBackingJob {
|
|||||||
|
|
||||||
match confirmation_rx.await {
|
match confirmation_rx.await {
|
||||||
Err(oneshot::Canceled) =>
|
Err(oneshot::Canceled) =>
|
||||||
tracing::warn!(target: LOG_TARGET, "Dispute coordinator confirmation lost",),
|
tracing::debug!(target: LOG_TARGET, "Dispute coordinator confirmation lost",),
|
||||||
Ok(ImportStatementsResult::ValidImport) => {},
|
Ok(ImportStatementsResult::ValidImport) => {},
|
||||||
Ok(ImportStatementsResult::InvalidImport) =>
|
Ok(ImportStatementsResult::InvalidImport) =>
|
||||||
tracing::warn!(target: LOG_TARGET, "Failed to import statements of validity",),
|
tracing::warn!(target: LOG_TARGET, "Failed to import statements of validity",),
|
||||||
|
|||||||
@@ -106,6 +106,10 @@ pub type NonFatalResult<T> = std::result::Result<T, NonFatal>;
|
|||||||
pub fn log_error(result: Result<()>) -> std::result::Result<(), Fatal> {
|
pub fn log_error(result: Result<()>) -> std::result::Result<(), Fatal> {
|
||||||
match result {
|
match result {
|
||||||
Err(Error::Fatal(f)) => Err(f),
|
Err(Error::Fatal(f)) => Err(f),
|
||||||
|
Err(Error::NonFatal(error @ NonFatal::ImportCanceled(_))) => {
|
||||||
|
tracing::debug!(target: LOG_TARGET, error = ?error);
|
||||||
|
Ok(())
|
||||||
|
},
|
||||||
Err(Error::NonFatal(error)) => {
|
Err(Error::NonFatal(error)) => {
|
||||||
tracing::warn!(target: LOG_TARGET, error = ?error);
|
tracing::warn!(target: LOG_TARGET, error = ?error);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user