diff --git a/sn_client/src/api.rs b/sn_client/src/api.rs index c7477fc999..b279ed9e31 100644 --- a/sn_client/src/api.rs +++ b/sn_client/src/api.rs @@ -824,16 +824,19 @@ impl Client { let network_address = NetworkAddress::from_spend_address(cash_note_addr); let key = network_address.to_record_key(); - let pretty_key = PrettyPrintRecordKey::from(&key); - trace!("Sending spend {unique_pubkey:?} to the network via put_record, with addr of {cash_note_addr:?} - {pretty_key:?}"); + let record_kind = RecordKind::Spend; let record = Record { - key, + key: key.clone(), value: try_serialize_record(&[spend], record_kind)?.to_vec(), publisher: None, expires: None, }; + let pretty_key = PrettyPrintRecordKey::from(&key); + info!("Sending spend {unique_pubkey:?} to the network via put_record, with addr of {cash_note_addr:?} - {pretty_key:?}, size of {}", + record.value.len()); + let (record_to_verify, expected_holders) = if verify_store { let expected_holders: HashSet<_> = self .network diff --git a/sn_client/src/wallet.rs b/sn_client/src/wallet.rs index d18aa96e35..84f100b700 100644 --- a/sn_client/src/wallet.rs +++ b/sn_client/src/wallet.rs @@ -864,7 +864,7 @@ impl Client { // send spends to the network in parralel for spend_request in spend_requests { - debug!( + trace!( "sending spend request to the network: {:?}: {spend_request:#?}", spend_request.unique_pubkey() );