Skip to content

Commit

Permalink
refactor: add some more trace logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SkuldNorniern committed Jul 18, 2024
1 parent 3733e33 commit c40839f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/net/offline_fluereflows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,17 @@ pub async fn fluereflow_fileparse(arg: Args) -> Result<(), FluereError> {
let bar = ProgressBar::new_spinner();

while let Ok(packet) = cap.next_packet() {
trace!("Parsing packet");
let (mut key_value, mut reverse_key) = match parse_keys(packet.clone()) {
Ok(keys) => keys,
Err(_) => continue,
};
trace!("Parsed keys");
if !use_mac {
key_value.mac_defaultate();
reverse_key.mac_defaultate();
}

let (doctets, raw_flags, flowdata) = match parse_fluereflow(packet.clone()) {
Ok(result) => result,
Err(e) => {
Expand Down

0 comments on commit c40839f

Please sign in to comment.