chore(eBPF): improve log messages (#8611)

This commit is contained in:
Thomas Eizinger
2025-04-02 15:52:45 +11:00
committed by GitHub
parent fb1311991a
commit 59453bd063
2 changed files with 4 additions and 2 deletions

View File

@@ -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
}

View File

@@ -85,6 +85,8 @@ impl Program {
});
}
tracing::info!("eBPF TURN router loaded and attached to interface {interface}");
Ok(Self { ebpf })
}