summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2024-08-19 12:12:47 +0200
committerDavid Lönnhager <david.l@mullvad.net>2024-08-20 12:03:05 +0200
commitfa78481826f4b39af78931abde28bbdc4350809c (patch)
treef805fecd79ee1c9e28174aa93a98cf482a18b613
parentc1c00a6ee3c3a55f79c484456b09061c835ca49a (diff)
downloadmullvadvpn-fa78481826f4b39af78931abde28bbdc4350809c.tar.xz
mullvadvpn-fa78481826f4b39af78931abde28bbdc4350809c.zip
Lower 'forward error' to trace level
-rw-r--r--talpid-core/src/split_tunnel/macos/tun.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/talpid-core/src/split_tunnel/macos/tun.rs b/talpid-core/src/split_tunnel/macos/tun.rs
index b1a7cf53cf..ba810f858e 100644
--- a/talpid-core/src/split_tunnel/macos/tun.rs
+++ b/talpid-core/src/split_tunnel/macos/tun.rs
@@ -569,7 +569,10 @@ fn classify_and_send(
};
fix_ipv4_checksums(&mut ip, Some(addr), None);
if let Err(error) = vpn_write.write(packet.frame.payload()) {
- log::error!("Failed to forward to tun device: {error}");
+ log::trace!(
+ "Failed to forward to VPN tunnel: {error}, size: {}",
+ packet.frame.payload().len()
+ );
}
}
EtherTypes::Ipv6 => {
@@ -583,7 +586,10 @@ fn classify_and_send(
};
fix_ipv6_checksums(&mut ip, Some(addr), None);
if let Err(error) = vpn_write.write(packet.frame.payload()) {
- log::error!("Failed to forward to tun device: {error}");
+ log::trace!(
+ "Failed to forward to VPN tunnel: {error}, size: {}",
+ packet.frame.payload().len()
+ );
}
}
other => log::error!("unknown ethertype: {other}"),