aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index 242e285..5001a17 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -533,14 +533,7 @@ fn search_file(path: &Path, is_zip: bool, filter: &dyn LogFilter) -> Result<Opti
}
let raw = evtclib::raw::parser::finish_parsing(partial, &mut stream)?;
- let parsed = evtclib::process(&raw).ok();
- let log = if let Some(e) = parsed {
- e
- } else {
- debug!("log file cannot be parsed: {:?}", path);
- return Ok(None);
- };
-
+ let log = evtclib::process(&raw)?;
let info = extract_info(path, &log);
let take_log = filter.filter(&info);