@@ -77,7 +77,7 @@ impl<R: Read> Read for HttpReader<R> {
7777 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
7878 match * self {
7979 SizedReader ( ref mut body, ref mut remaining) => {
80- debug ! ( "Sized read, remaining={:?}" , remaining) ;
80+ trace ! ( "Sized read, remaining={:?}" , remaining) ;
8181 if * remaining == 0 {
8282 Ok ( 0 )
8383 } else {
@@ -96,15 +96,15 @@ impl<R: Read> Read for HttpReader<R> {
9696 // None means we don't know the size of the next chunk
9797 None => try!( read_chunk_size ( body) )
9898 } ;
99- debug ! ( "Chunked read, remaining={:?}" , rem) ;
99+ trace ! ( "Chunked read, remaining={:?}" , rem) ;
100100
101101 if rem == 0 {
102102 * opt_remaining = Some ( 0 ) ;
103103
104104 // chunk of size 0 signals the end of the chunked stream
105105 // if the 0 digit was missing from the stream, it would
106106 // be an InvalidInput error instead.
107- debug ! ( "end of chunked" ) ;
107+ trace ! ( "end of chunked" ) ;
108108 return Ok ( 0 )
109109 }
110110
@@ -205,7 +205,7 @@ fn read_chunk_size<R: Read>(rdr: &mut R) -> io::Result<u64> {
205205 }
206206 }
207207 }
208- debug ! ( "chunk size={:?}" , size) ;
208+ trace ! ( "chunk size={:?}" , size) ;
209209 Ok ( size)
210210}
211211
@@ -279,7 +279,7 @@ impl<W: Write> Write for HttpWriter<W> {
279279 ThroughWriter ( ref mut w) => w. write ( msg) ,
280280 ChunkedWriter ( ref mut w) => {
281281 let chunk_size = msg. len ( ) ;
282- debug ! ( "chunked write, size = {:?}" , chunk_size) ;
282+ trace ! ( "chunked write, size = {:?}" , chunk_size) ;
283283 try!( write ! ( w, "{:X}{}" , chunk_size, LINE_ENDING ) ) ;
284284 try!( w. write_all ( msg) ) ;
285285 try!( w. write_all ( LINE_ENDING . as_bytes ( ) ) ) ;
0 commit comments