Skip to content

Commit

Permalink
refactored import-account
Browse files Browse the repository at this point in the history
  • Loading branch information
FroVolod committed Feb 24, 2025
1 parent b77b6f3 commit a98a4c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/commands/account/import_account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ fn save_access_key(
public_key_str,
account_id.as_ref(),
)?;
eprintln!("{}", storage_message);
tracing::info!(
parent: &tracing::Span::none(),
"\n{}",
crate::common::indent_payload(&storage_message)
);
return Ok(());
}

Expand All @@ -138,6 +142,10 @@ fn save_access_key(
account_id.as_ref(),
)
.wrap_err_with(|| format!("Failed to save a file with access key: {}", public_key_str))?;
eprintln!("{}", storage_message);
tracing::info!(
parent: &tracing::Span::none(),
"\n{}",
crate::common::indent_payload(&storage_message)
);
Ok(())
}

0 comments on commit a98a4c3

Please sign in to comment.