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:
Thomas Eizinger
2024-03-12 08:04:17 +11:00
committed by GitHub
parent 6575e0ca26
commit dde8b646f0

View File

@@ -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()),