mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
chore(eBPF): improve log messages (#8611)
This commit is contained in:
@@ -69,13 +69,13 @@ pub fn handle_turn(ctx: XdpContext) -> u32 {
|
||||
| Error::PacketTooShort
|
||||
| Error::NoMacAddress
|
||||
| Error::NoChannelBinding => {
|
||||
debug!(&ctx, "Failed to handle packet: {}", e);
|
||||
debug!(&ctx, "Passing packet to userspace: {}", e);
|
||||
|
||||
xdp_action::XDP_PASS
|
||||
}
|
||||
|
||||
Error::BadChannelDataLength => {
|
||||
debug!(&ctx, "Failed to handle packet: {}; dropping", e);
|
||||
debug!(&ctx, "Dropping packet: {}", e);
|
||||
|
||||
xdp_action::XDP_DROP
|
||||
}
|
||||
|
||||
@@ -85,6 +85,8 @@ impl Program {
|
||||
});
|
||||
}
|
||||
|
||||
tracing::info!("eBPF TURN router loaded and attached to interface {interface}");
|
||||
|
||||
Ok(Self { ebpf })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user