mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
chore(connlib): remove redundant action from wire log (#4061)
The fields `to` and `from` already indicate that we are either reading or writing.
This commit is contained in:
@@ -94,7 +94,7 @@ impl Device {
|
||||
)
|
||||
})?;
|
||||
|
||||
tracing::trace!(target: "wire", action = "read", from = "device", dest = %packet.destination(), bytes = %packet.packet().len());
|
||||
tracing::trace!(target: "wire", from = "device", dest = %packet.destination(), bytes = %packet.packet().len());
|
||||
|
||||
Poll::Ready(Ok(packet))
|
||||
}
|
||||
@@ -127,7 +127,7 @@ impl Device {
|
||||
)
|
||||
})?;
|
||||
|
||||
tracing::trace!(target: "wire", action = "read", from = "device", dest = %packet.destination(), bytes = %packet.packet().len());
|
||||
tracing::trace!(target: "wire", from = "device", dest = %packet.destination(), bytes = %packet.packet().len());
|
||||
|
||||
Poll::Ready(Ok(packet))
|
||||
}
|
||||
@@ -175,7 +175,7 @@ impl Device {
|
||||
}
|
||||
|
||||
pub fn write(&self, packet: IpPacket<'_>) -> io::Result<usize> {
|
||||
tracing::trace!(target: "wire", action = "write", to = "device", bytes = %packet.packet().len());
|
||||
tracing::trace!(target: "wire", to = "device", bytes = %packet.packet().len());
|
||||
|
||||
match packet {
|
||||
IpPacket::Ipv4Packet(msg) => self.tun.write4(msg.packet()),
|
||||
|
||||
Reference in New Issue
Block a user