mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-05 15:22:29 -05:00
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:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user