File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed
Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -265,15 +265,13 @@ pub async fn download_libraries(
265265 artifact: Some ( ref artifact) , ..
266266 } ) = lib. downloads {
267267 if !artifact. url. is_empty( ) {
268- tracing:: info!( "fetching library '{}' from '{}'" , & lib. name, & artifact. url) ;
269268 let bytes = fetch( & artifact. url, Some ( & artifact. sha1) , & st. fetch_semaphore) . await ?;
270269 write( & path, & bytes, & st. io_semaphore) . await ?;
271270 tracing:: trace!( "fetched library {} to path {:?}" , & lib. name, & path) ;
272271 return Ok :: <_, crate :: Error >( ( ) ) ;
273272 }
274273 }
275274
276- tracing:: info!( "fetching #2 library '{}' from '{}'" , & lib. name, & artifact. url) ;
277275 let url = [ lib. url. as_deref( ) . unwrap_or( "https://libraries.minecraft.net/" ) , & artifact_path] . concat( ) ;
278276 let bytes = fetch( & url, None , & st. fetch_semaphore) . await ?;
279277 write( & path, & bytes, & st. io_semaphore) . await ?;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub fn start_logger() -> Option<WorkerGuard> {
2828 } ) ;
2929
3030 let subscriber = tracing_subscriber:: registry ( )
31- . with ( tracing_subscriber:: fmt:: layer ( ) . pretty ( ) )
31+ . with ( tracing_subscriber:: fmt:: layer ( ) )
3232 . with ( filter)
3333 . with ( tracing_error:: ErrorLayer :: default ( ) ) ;
3434
@@ -59,7 +59,6 @@ pub fn start_logger() -> Option<WorkerGuard> {
5959 let ( non_blocking, guard) = tracing_appender:: non_blocking ( file_appender) ;
6060
6161 let subscriber = tracing_subscriber:: registry ( )
62- . with ( tracing_subscriber:: fmt:: layer ( ) . pretty ( ) )
6362 . with (
6463 tracing_subscriber:: fmt:: layer ( )
6564 . with_writer ( non_blocking)
Original file line number Diff line number Diff line change @@ -106,8 +106,6 @@ pub async fn fetch_advanced(
106106
107107 match result {
108108 Ok ( x) => {
109- let x = x. error_for_status ( ) ?;
110-
111109 let bytes = if let Some ( ( feed, total) ) = & ingress {
112110 let length = x. content_length ( ) ;
113111 if let Some ( total_size) = length {
You can’t perform that action at this time.
0 commit comments