Demote error and warning logging when process of packet could not be found

This commit is contained in:
Daniel
2020-05-18 15:33:05 +02:00
parent 3adf52d19c
commit 0036d25672
2 changed files with 4 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ func NewConnectionFromDNSRequest(ctx context.Context, fqdn string, cnames []stri
false, // inbound, irrevelant
)
if err != nil {
log.Warningf("network: failed to find process of dns request for %s: %s", fqdn, err)
log.Debugf("network: failed to find process of dns request for %s: %s", fqdn, err)
proc = process.GetUnidentifiedProcess(ctx)
}
@@ -99,7 +99,7 @@ func NewConnectionFromFirstPacket(pkt packet.Packet) *Connection {
// get Process
proc, inbound, err := process.GetProcessByPacket(pkt)
if err != nil {
log.Warningf("network: failed to find process of packet %s: %s", pkt, err)
log.Debugf("network: failed to find process of packet %s: %s", pkt, err)
proc = process.GetUnidentifiedProcess(pkt.Ctx())
}