logging improvements

*   allow debug/trace logging on release builds again
*   enable log messages from hyper. I didn't notice they went
    away with 0.14.0, although there's a breaking change in the log:
    https://github.com/hyperium/hyper/blob/master/CHANGELOG.md#v0140-2020-12-23
*   downgrade some particularly spammy messages
This commit is contained in:
Scott Lamb
2021-06-04 23:28:48 -07:00
parent 7591146928
commit 9cc63faf29
6 changed files with 27 additions and 15 deletions

View File

@@ -1111,8 +1111,8 @@ impl FileBuilder {
self.body.buf.len()
);
}
debug!("segments: {:#?}", self.segments);
debug!("slices: {:?}", self.body.slices);
trace!("segments: {:#?}", self.segments);
trace!("slices: {:?}", self.body.slices);
let last_modified =
::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(max_end as u64);
let etag = etag.finalize();
@@ -1410,7 +1410,7 @@ impl FileBuilder {
flushed.push(unflushed);
debug!("Using edit list: {:?}", flushed);
trace!("Using edit list: {:?}", flushed);
write_length!(self, {
self.body.buf.extend_from_slice(b"edts");
write_length!(self, {