We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86eee20 commit b7d3bd5Copy full SHA for b7d3bd5
1 file changed
src/instrumentation_profile/mod.rs
@@ -7,6 +7,7 @@ use std::fs::File;
7
use std::io;
8
use std::io::prelude::*;
9
use std::path::Path;
10
+use tracing::trace;
11
12
pub mod indexed_profile;
13
pub mod raw_profile;
@@ -43,8 +44,7 @@ pub fn parse_bytes(data: &[u8]) -> io::Result<InstrumentationProfile> {
43
44
));
45
};
46
nom_res.map(|(_bytes, res)| res).map_err(|_e| {
- #[cfg(test)]
47
- println!("{}", _e);
+ trace!("{}", _e);
48
io::Error::new(io::ErrorKind::Other, "Parsing failed")
49
})
50
}
0 commit comments