Skip to content

Commit b7d3bd5

Browse files
committed
Add real error into trace printouts
1 parent 86eee20 commit b7d3bd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/instrumentation_profile

src/instrumentation_profile/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::fs::File;
77
use std::io;
88
use std::io::prelude::*;
99
use std::path::Path;
10+
use tracing::trace;
1011

1112
pub mod indexed_profile;
1213
pub mod raw_profile;
@@ -43,8 +44,7 @@ pub fn parse_bytes(data: &[u8]) -> io::Result<InstrumentationProfile> {
4344
));
4445
};
4546
nom_res.map(|(_bytes, res)| res).map_err(|_e| {
46-
#[cfg(test)]
47-
println!("{}", _e);
47+
trace!("{}", _e);
4848
io::Error::new(io::ErrorKind::Other, "Parsing failed")
4949
})
5050
}

0 commit comments

Comments
 (0)