Skip to content

Commit

Permalink
Add more debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Dec 18, 2024
1 parent ea03c87 commit 9af53da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/forward_traffic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub async fn process_tcp2udp(
.await
.context("Timeout while reading from TCP")?
.context("Failed reading from TCP")?;
log::info!("TCP2UDP read {} bytes from TCP socket", tcp_read_len);
if tcp_read_len == 0 {
break;
}
Expand Down Expand Up @@ -145,6 +146,7 @@ pub async fn process_udp2tcp(
.recv(&mut buffer[HEADER_LEN..])
.await
.context("Failed reading from UDP")?;
log::info!("UDP2TCP read {} bytes from UDP socket", udp_read_len);

// Set the "header" to the length of the datagram.
let datagram_len =
Expand Down

0 comments on commit 9af53da

Please sign in to comment.