mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +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
@@ -106,6 +106,10 @@ pub type NonFatalResult<T> = std::result::Result<T, NonFatal>;
|
||||
pub fn log_error(result: Result<()>) -> std::result::Result<(), Fatal> {
|
||||
match result {
|
||||
Err(Error::Fatal(f)) => Err(f),
|
||||
Err(Error::NonFatal(error @ NonFatal::ImportCanceled(_))) => {
|
||||
tracing::debug!(target: LOG_TARGET, error = ?error);
|
||||
Ok(())
|
||||
},
|
||||
Err(Error::NonFatal(error)) => {
|
||||
tracing::warn!(target: LOG_TARGET, error = ?error);
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user