Skip to content

Commit

Permalink
Fix logger for src and dest ip
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Jan 23, 2025
1 parent fa93f55 commit da79e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nflux/src/egress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ pub async fn process_egress_events(
match parse_egress_event(buf) {
Ok(event) => {
info!(
"{} protocol={}, ip={}, src_port={}, dst_port={}",
"{} protocol={}, src_ip={}, dst_ip={}, src_port={}, dst_port={}",
if event.direction == 0 {"ingress"} else { "egress"},
convert_protocol(event.protocol),
Ipv4Addr::from(event.src_ip),
Ipv4Addr::from(event.dst_ip),
event.src_port,
event.dst_port,
Expand Down

0 comments on commit da79e17

Please sign in to comment.