@@ -95,7 +95,7 @@ pub async fn handle_project_upload<'a>(
9595 let project_dir = upload_dir. join ( PROJECT_DIR ) ;
9696
9797 // Unpack the tarball.
98- tracing:: info!( "Unpacking tarball: {:? }" , orig_tarball_path) ;
98+ tracing:: info!( "Unpacking tarball: {}" , orig_tarball_path. to_string_lossy ( ) ) ;
9999 let tarball = File :: open ( orig_tarball_path) . map_err ( |_| UploadError :: OpenFile ) ?;
100100 let decompressed = GzDecoder :: new ( tarball) ;
101101 let mut archive = Archive :: new ( decompressed) ;
@@ -106,7 +106,7 @@ pub async fn handle_project_upload<'a>(
106106 // Remove `out` directory if it exists.
107107 let _ = fs:: remove_dir_all ( unpacked_dir. join ( "out" ) ) ;
108108
109- tracing:: info!( "Executing forc build: {:? }" , forc_path) ;
109+ tracing:: info!( "Executing forc build: {}" , forc_path. to_string_lossy ( ) ) ;
110110 let output = Command :: new ( format ! ( "{}/bin/forc" , forc_path. to_string_lossy( ) ) )
111111 . arg ( "build" )
112112 . arg ( "--release" )
@@ -122,7 +122,10 @@ pub async fn handle_project_upload<'a>(
122122 }
123123
124124 // Copy files that are part of the Sway project to a new directory.
125- tracing:: info!( "Copying files to project directory: {:?}" , project_dir) ;
125+ tracing:: info!(
126+ "Copying files to project directory: {}" ,
127+ project_dir. to_string_lossy( )
128+ ) ;
126129 let output = Command :: new ( "rsync" )
127130 . args ( [
128131 "-av" ,
@@ -148,7 +151,7 @@ pub async fn handle_project_upload<'a>(
148151 }
149152
150153 // Pack the new tarball.
151- tracing:: info!( "Packing tarball: {:? }" , upload_dir) ;
154+ tracing:: info!( "Packing tarball: {}" , upload_dir. to_string_lossy ( ) ) ;
152155 let final_tarball_path = upload_dir. join ( TARBALL_NAME ) ;
153156 let tar_gz = File :: create ( & final_tarball_path) . map_err ( |_| UploadError :: OpenFile ) ?;
154157 let enc = GzEncoder :: new ( tar_gz, Compression :: default ( ) ) ;
@@ -166,7 +169,10 @@ pub async fn handle_project_upload<'a>(
166169 enc. finish ( ) . map_err ( |_| UploadError :: CopyFiles ) ?;
167170
168171 // Store the tarball.
169- tracing:: info!( "Uploading tarball: {:?}" , final_tarball_path) ;
172+ tracing:: info!(
173+ "Uploading tarball: {}" ,
174+ final_tarball_path. to_string_lossy( )
175+ ) ;
170176 let tarball_ipfs_hash = file_uploader. upload_file ( & final_tarball_path) . await ?;
171177
172178 fn find_file_in_dir_by_suffix ( dir : & Path , suffix : & str ) -> Option < PathBuf > {
@@ -192,7 +198,7 @@ pub async fn handle_project_upload<'a>(
192198 // Store the ABI.
193199 let abi_ipfs_hash = match find_file_in_dir_by_suffix ( & release_dir, "-abi.json" ) {
194200 Some ( abi_path) => {
195- tracing:: info!( "Uploading ABI: {:? }" , release_dir) ;
201+ tracing:: info!( "Uploading ABI: {}" , release_dir. to_string_lossy ( ) ) ;
196202 Some ( file_uploader. upload_file ( & abi_path) . await ?)
197203 }
198204 None => None ,
0 commit comments