mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +00:00
Submit connection trace log earlier for correct log order
This commit is contained in:
parent
0104d82e8e
commit
b3f3d0ef7c
1 changed files with 3 additions and 3 deletions
|
@ -615,8 +615,11 @@ func (conn *Connection) packetHandler() {
|
|||
} else {
|
||||
defaultFirewallHandler(conn, pkt)
|
||||
}
|
||||
|
||||
// log verdict
|
||||
log.Tracer(pkt.Ctx()).Infof("filter: connection %s %s: %s", conn, conn.Verdict.Verb(), conn.Reason.Msg)
|
||||
// submit trace logs
|
||||
log.Tracer(pkt.Ctx()).Submit()
|
||||
|
||||
// save does not touch any changing data
|
||||
// must not be locked, will deadlock with cleaner functions
|
||||
|
@ -626,9 +629,6 @@ func (conn *Connection) packetHandler() {
|
|||
}
|
||||
|
||||
conn.Unlock()
|
||||
|
||||
// submit trace logs
|
||||
log.Tracer(pkt.Ctx()).Submit()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue