Skip to content

Commit

Permalink
feat: log internal parsing error for later feature search
Browse files Browse the repository at this point in the history
  • Loading branch information
SkuldNorniern committed Mar 13, 2024
1 parent 4edaf04 commit efd691d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/net/offline_fluereflows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ pub async fn fluereflow_fileparse(arg: Args) {
}
let (doctets, raw_flags, flowdata) = match parse_fluereflow(packet.clone()) {
Ok(result) => result,
Err(_) => continue,
Err(e) => {
debug!("{}", e);
continue;
}
};
let flags = TcpFlags::new(raw_flags);
//pushing packet in to active_flows if it is not present
Expand Down
5 changes: 4 additions & 1 deletion src/net/online_fluereflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ pub async fn packet_capture(arg: Args) {

let (doctets, raw_flags, flowdata) = match parse_fluereflow(packet.clone()) {
Ok(result) => result,
Err(_) => continue,
Err(e) => {
debug!("{}", e);
continue;
}
};

let flags = TcpFlags::new(raw_flags);
Expand Down

0 comments on commit efd691d

Please sign in to comment.