@@ -77,7 +77,7 @@ impl<R: Read> Read for HttpReader<R> {
77
77
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
78
78
match * self {
79
79
SizedReader ( ref mut body, ref mut remaining) => {
80
- debug ! ( "Sized read, remaining={:?}" , remaining) ;
80
+ trace ! ( "Sized read, remaining={:?}" , remaining) ;
81
81
if * remaining == 0 {
82
82
Ok ( 0 )
83
83
} else {
@@ -96,15 +96,15 @@ impl<R: Read> Read for HttpReader<R> {
96
96
// None means we don't know the size of the next chunk
97
97
None => try!( read_chunk_size ( body) )
98
98
} ;
99
- debug ! ( "Chunked read, remaining={:?}" , rem) ;
99
+ trace ! ( "Chunked read, remaining={:?}" , rem) ;
100
100
101
101
if rem == 0 {
102
102
* opt_remaining = Some ( 0 ) ;
103
103
104
104
// chunk of size 0 signals the end of the chunked stream
105
105
// if the 0 digit was missing from the stream, it would
106
106
// be an InvalidInput error instead.
107
- debug ! ( "end of chunked" ) ;
107
+ trace ! ( "end of chunked" ) ;
108
108
return Ok ( 0 )
109
109
}
110
110
@@ -205,7 +205,7 @@ fn read_chunk_size<R: Read>(rdr: &mut R) -> io::Result<u64> {
205
205
}
206
206
}
207
207
}
208
- debug ! ( "chunk size={:?}" , size) ;
208
+ trace ! ( "chunk size={:?}" , size) ;
209
209
Ok ( size)
210
210
}
211
211
@@ -279,7 +279,7 @@ impl<W: Write> Write for HttpWriter<W> {
279
279
ThroughWriter ( ref mut w) => w. write ( msg) ,
280
280
ChunkedWriter ( ref mut w) => {
281
281
let chunk_size = msg. len ( ) ;
282
- debug ! ( "chunked write, size = {:?}" , chunk_size) ;
282
+ trace ! ( "chunked write, size = {:?}" , chunk_size) ;
283
283
try!( write ! ( w, "{:X}{}" , chunk_size, LINE_ENDING ) ) ;
284
284
try!( w. write_all ( msg) ) ;
285
285
try!( w. write_all ( LINE_ENDING . as_bytes ( ) ) ) ;
0 commit comments