Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove log cli parameters (#759)
  • Loading branch information
vovac12 authored Oct 5, 2023
commit 3493ee197615533a799e229bd4eebb7fae72e3cf
1 change: 0 additions & 1 deletion relayer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ extern crate anyhow;
async fn main() -> AnyResult<()> {
init_log();
let cli = cli::Cli::parse();
debug!("Cli: {:?}", cli);
cli.run().await.map_err(|e| {
error!("Relayer returned error: {:?}", e);
e
Expand Down
16 changes: 14 additions & 2 deletions relayer/src/substrate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ impl<T: ConfigExt> UnsignedClient<T> {
N: Into<BlockNumberOrHash>,
{
let hash = self.block_hash(hash).await?;
trace!(
"Fetching storage {}::{} at hash {:?}",
address.pallet_name(),
address.entry_name(),
hash
);
let res = self
.api()
.storage()
Expand All @@ -392,7 +398,7 @@ impl<T: ConfigExt> UnsignedClient<T> {
N: Into<BlockNumberOrHash>,
{
let hash = self.block_hash(hash).await?;
info!(
trace!(
"Fetching storage {}::{} at hash {:?}",
address.pallet_name(),
address.entry_name(),
Expand All @@ -402,7 +408,13 @@ impl<T: ConfigExt> UnsignedClient<T> {
.api()
.storage()
.fetch_or_default(address, Some(hash.into()))
.await?;
.await
.context(format!(
"Fetch storage {}::{} at hash {:?}",
address.pallet_name(),
address.entry_name(),
hash
))?;
Ok(res)
}

Expand Down