Skip to content

Commit

Permalink
fix(exif): println! prints lines to output #27
Browse files Browse the repository at this point in the history
  • Loading branch information
mindeng committed Jan 15, 2025
1 parent 8a88f30 commit 73b8d50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exif/travel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ impl<'a> IfdHeaderTravel<'a> {
value_or_offset.saturating_sub(self.offset)
}

#[tracing::instrument(skip(self))]
fn parse_ifd_entry_header(&self, pos: u32) -> IResult<&[u8], Option<IfdHeaderTravel<'a>>> {
let (_, entry_data) =
nom::bytes::streaming::take(IFD_ENTRY_SIZE)(&self.ifd_data[pos as usize..])?;
Expand All @@ -129,7 +130,7 @@ impl<'a> IfdHeaderTravel<'a> {

if let Some(offset) = entry.sub_ifd_offset {
let tag: ExifTag = entry.tag.try_into().unwrap();
println!("sub-ifd: {:?}", tag);
tracing::debug!("sub-ifd: {:?}", tag);
let sub_ifd =
IfdHeaderTravel::new(&self.ifd_data[offset as usize..], offset, self.endian);
return Ok((remain, Some(sub_ifd)));
Expand Down

0 comments on commit 73b8d50

Please sign in to comment.