@@ -31,7 +31,10 @@ use crate::{
3131 tx:: builder,
3232 utils:: get_name_from_stellar_asset_contract_storage,
3333} ;
34- use crate :: { config:: address:: UnresolvedMuxedAccount , utils:: http} ;
34+ use crate :: {
35+ config:: address:: UnresolvedMuxedAccount ,
36+ utils:: { http, url:: redact_url} ,
37+ } ;
3538
3639#[ derive( Clone , Copy , Debug , Eq , Hash , PartialEq , ValueEnum , Default ) ]
3740pub enum Output {
@@ -559,7 +562,10 @@ async fn get_history(
559562 } ;
560563 let history_url = Url :: from_str ( & history_url) . unwrap ( ) ;
561564
562- print. globeln ( format ! ( "Downloading history {history_url}" ) ) ;
565+ print. globeln ( format ! (
566+ "Downloading history {}" ,
567+ redact_url( history_url. as_str( ) )
568+ ) ) ;
563569
564570 let response = http:: client ( )
565571 . get ( history_url. as_str ( ) )
@@ -589,7 +595,10 @@ async fn get_history(
589595 . map_err ( Error :: ReadHistoryHttpStream ) ?;
590596
591597 print. clear_previous_line ( ) ;
592- print. globeln ( format ! ( "Downloaded history {}" , & history_url) ) ;
598+ print. globeln ( format ! (
599+ "Downloaded history {}" ,
600+ redact_url( history_url. as_str( ) )
601+ ) ) ;
593602
594603 serde_json:: from_slice :: < History > ( & body) . map_err ( Error :: JsonDecodingHistory )
595604}
@@ -608,7 +617,10 @@ async fn get_ledger_metadata_from_archive(
608617 "{archive_url}/ledger/{ledger_hex_0}/{ledger_hex_1}/{ledger_hex_2}/ledger-{ledger_hex}.xdr.gz"
609618 ) ;
610619
611- print. globeln ( format ! ( "Downloading ledger headers {ledger_url}" ) ) ;
620+ print. globeln ( format ! (
621+ "Downloading ledger headers {}" ,
622+ redact_url( & ledger_url)
623+ ) ) ;
612624
613625 let ledger_url = Url :: from_str ( & ledger_url) . map_err ( Error :: ParsingBucketUrl ) ?;
614626 let response = http:: client ( )
0 commit comments