mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +00:00
Demote error and warning logging when process of packet could not be found
This commit is contained in:
parent
3adf52d19c
commit
0036d25672
2 changed files with 4 additions and 4 deletions
|
@ -76,7 +76,7 @@ func NewConnectionFromDNSRequest(ctx context.Context, fqdn string, cnames []stri
|
||||||
false, // inbound, irrevelant
|
false, // inbound, irrevelant
|
||||||
)
|
)
|
||||||
if err != nil {
|
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)
|
proc = process.GetUnidentifiedProcess(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ func NewConnectionFromFirstPacket(pkt packet.Packet) *Connection {
|
||||||
// get Process
|
// get Process
|
||||||
proc, inbound, err := process.GetProcessByPacket(pkt)
|
proc, inbound, err := process.GetProcessByPacket(pkt)
|
||||||
if err != nil {
|
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())
|
proc = process.GetUnidentifiedProcess(pkt.Ctx())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,13 +56,13 @@ func GetProcessByEndpoints(
|
||||||
var pid int
|
var pid int
|
||||||
pid, connInbound, err = state.Lookup(ipVersion, protocol, localIP, localPort, remoteIP, remotePort, pktInbound)
|
pid, connInbound, err = state.Lookup(ipVersion, protocol, localIP, localPort, remoteIP, remotePort, pktInbound)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Tracer(ctx).Errorf("process: failed to find PID of connection: %s", err)
|
log.Tracer(ctx).Debugf("process: failed to find PID of connection: %s", err)
|
||||||
return nil, connInbound, err
|
return nil, connInbound, err
|
||||||
}
|
}
|
||||||
|
|
||||||
process, err = GetOrFindPrimaryProcess(ctx, pid)
|
process, err = GetOrFindPrimaryProcess(ctx, pid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Tracer(ctx).Errorf("process: failed to find (primary) process with PID: %s", err)
|
log.Tracer(ctx).Debugf("process: failed to find (primary) process with PID: %s", err)
|
||||||
return nil, connInbound, err
|
return nil, connInbound, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue