Improve logging for offchain transaction submission. (#3871)

This commit is contained in:
Tomasz Drwięga
2019-10-22 10:29:44 +02:00
committed by Bastian Köcher
parent 5d5e71028e
commit 16a5d43807
+2 -2
View File
@@ -317,12 +317,12 @@ impl<A: ChainApi> AsyncApi<A> {
},
};
info!("Submitting to the pool: {:?} (isSigned: {:?})", xt, xt.is_signed());
info!("Submitting transaction to the pool: {:?} (isSigned: {:?})", xt, xt.is_signed());
future::Either::Right(self.transaction_pool
.submit_one(&self.at, xt.clone())
.map(|result| match result {
Ok(hash) => { debug!("[{:?}] Offchain transaction added to the pool.", hash); },
Err(e) => { debug!("Couldn't submit transaction: {:?}", e); },
Err(e) => { warn!("Couldn't submit offchain transaction: {:?}", e); },
}))
}
}