mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-28 15:06:01 -05:00
remove extraneous debug logging
This commit is contained in:
parent
cb18ba44d8
commit
919e9a6deb
@ -1418,12 +1418,10 @@ impl FileInner {
|
|||||||
fn get_co64(&self, r: Range<u64>, l: u64) -> Result<Chunk, Error> {
|
fn get_co64(&self, r: Range<u64>, l: u64) -> Result<Chunk, Error> {
|
||||||
let mut v = Vec::with_capacity(l as usize);
|
let mut v = Vec::with_capacity(l as usize);
|
||||||
let mut pos = self.initial_sample_byte_pos;
|
let mut pos = self.initial_sample_byte_pos;
|
||||||
debug!("co64, initial pos={}", pos);
|
|
||||||
for s in &self.segments {
|
for s in &self.segments {
|
||||||
v.write_u64::<BigEndian>(pos)?;
|
v.write_u64::<BigEndian>(pos)?;
|
||||||
let r = s.s.sample_file_range();
|
let r = s.s.sample_file_range();
|
||||||
pos += r.end - r.start;
|
pos += r.end - r.start;
|
||||||
debug!("co64, pos={} after adding r={:?}", pos, r);
|
|
||||||
}
|
}
|
||||||
Ok(ARefs::new(v).map(|v| &v[r.start as usize .. r.end as usize]))
|
Ok(ARefs::new(v).map(|v| &v[r.start as usize .. r.end as usize]))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user