Skip to content

Commit 9af53da

Browse files
committed
Add more debug logging
1 parent ea03c87 commit 9af53da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/forward_traffic.rs

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ pub async fn process_tcp2udp(
7070
.await
7171
.context("Timeout while reading from TCP")?
7272
.context("Failed reading from TCP")?;
73+
log::info!("TCP2UDP read {} bytes from TCP socket", tcp_read_len);
7374
if tcp_read_len == 0 {
7475
break;
7576
}
@@ -145,6 +146,7 @@ pub async fn process_udp2tcp(
145146
.recv(&mut buffer[HEADER_LEN..])
146147
.await
147148
.context("Failed reading from UDP")?;
149+
log::info!("UDP2TCP read {} bytes from UDP socket", udp_read_len);
148150

149151
// Set the "header" to the length of the datagram.
150152
let datagram_len =

0 commit comments

Comments
 (0)