Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder83singh committed Jul 31, 2024
1 parent ea104e9 commit 84458b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/modules/wallet_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,10 +878,9 @@ impl ModuleT for WalletCreate {
#[cfg(target_arch="wasm32")]
wasm_bindgen_futures::spawn_local(async move {
if let Some(file_handle) = file_handle.await{
log_info!("file_name: {:?}", file_handle.file_name());
let file_data = file_handle.read().await;
let json = String::from_utf8_lossy(&file_data.clone()).to_string();
log_info!("json: {json}");
log_trace!("json: {json}");
import_result.store(Ok(Some(json)));
}else{
import_result.store(Ok(None));
Expand All @@ -890,10 +889,9 @@ impl ModuleT for WalletCreate {
#[cfg(not(target_arch="wasm32"))]
spawn_with_result(&import_result, async move {
if let Some(file_handle) = file_handle.await{
log_info!("file_name: {:?}", file_handle.file_name());
let file_data = file_handle.read().await;
let json = String::from_utf8_lossy(&file_data.clone()).to_string();
log_info!("json: {json}");
log_trace!("json: {json}");
Ok(Some(json))
}else{
Ok(None)
Expand Down

0 comments on commit 84458b2

Please sign in to comment.