@@ -409,16 +409,6 @@ static void gh__response_status__release(struct gh__response_status *status)
409409 strbuf_release (& status -> content_type );
410410}
411411
412- static void gh__response_status__dump (
413- const struct gh__request_params * params ,
414- const struct gh__response_status * status )
415- {
416- trace2_printf ("%s: [curl %ld][http %ld][type '%s'][err '%s']" ,
417- params -> label .buf ,
418- status -> curl_code , status -> response_code ,
419- status -> content_type .buf , status -> error_message .buf );
420- }
421-
422412/*
423413 * The cache-server sends a somewhat bogus 400 instead of
424414 * the normal 401 when AUTH is required. Fixup the status
@@ -574,7 +564,17 @@ static void gh__run_one_slot(struct active_request_slot *slot,
574564 if (params -> progress )
575565 stop_progress (& params -> progress );
576566
577- gh__response_status__dump (params , status );
567+ if (params -> b_is_post && status -> ec == GH__ERROR_CODE__OK ) {
568+ long len = -1 ;
569+ if (params -> b_write_to_file )
570+ len = ftell (params -> tempfile -> fp );
571+ else
572+ len = params -> buffer -> len ;
573+ if (len != -1 )
574+ trace2_data_intmax ("gvfs-helper" , NULL , params -> label .buf ,
575+ (intmax_t )len );
576+ }
577+
578578 trace2_region_leave ("gvfs-helper" , params -> label .buf , NULL );
579579}
580580
0 commit comments