mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
chore(gateway): remove log around "No NAT session" (#8227)
This is pretty confusing when reading logs. For inbound packets, we assume that if we don't have a NAT session, they belong to the Internet Resource or a CIDR resource, meaning this log shows up for all packets for those resources and even for packets that don't belong to any resource at all.
This commit is contained in:
@@ -307,7 +307,11 @@ impl ClientOnGateway {
|
||||
|
||||
return Ok(None);
|
||||
}
|
||||
TranslateIncomingResult::NoNatSession => return Ok(Some(packet)),
|
||||
TranslateIncomingResult::NoNatSession => {
|
||||
// No NAT session means packet is likely for Internet Resource or a CIDR resource.
|
||||
|
||||
return Ok(Some(packet));
|
||||
}
|
||||
};
|
||||
|
||||
let mut packet = packet
|
||||
|
||||
@@ -102,8 +102,6 @@ impl NatTable {
|
||||
return Ok(TranslateIncomingResult::ExpiredNatSession);
|
||||
}
|
||||
|
||||
tracing::trace!(?outside, "No active NAT session; skipping translation");
|
||||
|
||||
return Ok(TranslateIncomingResult::NoNatSession);
|
||||
}
|
||||
|
||||
@@ -117,8 +115,6 @@ impl NatTable {
|
||||
return Ok(TranslateIncomingResult::ExpiredNatSession);
|
||||
}
|
||||
|
||||
tracing::trace!(?outside, "No active NAT session; skipping translation");
|
||||
|
||||
Ok(TranslateIncomingResult::NoNatSession)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user