From fb2377275bfeaa0eeea9b99ba5fc15450333f99e Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Fri, 28 Jul 2023 09:30:41 +0200 Subject: [PATCH] revert some --- bindings/nodejs-old/src/message_handler.rs | 2 +- sdk/src/client/api/block_builder/transaction.rs | 2 +- sdk/src/client/secret/ledger_nano.rs | 4 ++-- sdk/src/client/secret/mod.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bindings/nodejs-old/src/message_handler.rs b/bindings/nodejs-old/src/message_handler.rs index c6f2ca731f..b32f2b0d5b 100644 --- a/bindings/nodejs-old/src/message_handler.rs +++ b/bindings/nodejs-old/src/message_handler.rs @@ -63,7 +63,7 @@ impl MessageHandler { (msg, is_err) } Err(e) => { - log::error!("{:?}", e); + log::debug!("{:?}", e); ( serde_json::to_string(&Response::Error(e.into())) .expect("the response is generated manually, so unwrap is safe."), diff --git a/sdk/src/client/api/block_builder/transaction.rs b/sdk/src/client/api/block_builder/transaction.rs index 202e8e2ca5..76dedfb2fa 100644 --- a/sdk/src/client/api/block_builder/transaction.rs +++ b/sdk/src/client/api/block_builder/transaction.rs @@ -106,7 +106,7 @@ impl<'a> ClientBlockBuilder<'a> { let conflict = verify_semantic(&prepared_transaction_data.inputs_data, &tx_payload, current_time)?; if conflict != ConflictReason::None { - log::warn!("[sign_transaction] conflict: {conflict:?} for {:#?}", tx_payload); + log::debug!("[sign_transaction] conflict: {conflict:?} for {:#?}", tx_payload); return Err(Error::TransactionSemantic(conflict)); } diff --git a/sdk/src/client/secret/ledger_nano.rs b/sdk/src/client/secret/ledger_nano.rs index 8ab21de268..0b57b8a36d 100644 --- a/sdk/src/client/secret/ledger_nano.rs +++ b/sdk/src/client/secret/ledger_nano.rs @@ -329,7 +329,7 @@ impl SecretManage for LedgerSecretManager { } } } else { - log::warn!("[LEDGER] unsupported output"); + log::debug!("[LEDGER] unsupported output"); return Err(Error::MiscError.into()); } @@ -338,7 +338,7 @@ impl SecretManage for LedgerSecretManager { // was index found? if remainder_index as usize == essence.outputs().len() { - log::warn!("[LEDGER] remainder_index not found"); + log::debug!("[LEDGER] remainder_index not found"); return Err(Error::MiscError.into()); } } diff --git a/sdk/src/client/secret/mod.rs b/sdk/src/client/secret/mod.rs index 0350239a9c..784c02aa7a 100644 --- a/sdk/src/client/secret/mod.rs +++ b/sdk/src/client/secret/mod.rs @@ -519,7 +519,7 @@ where let conflict = verify_semantic(&inputs_data, &tx_payload, current_time)?; if conflict != ConflictReason::None { - log::warn!("[sign_transaction] conflict: {conflict:?} for {:#?}", tx_payload); + log::debug!("[sign_transaction] conflict: {conflict:?} for {:#?}", tx_payload); return Err(Error::TransactionSemantic(conflict)); }