Skip to content

Commit f23c163

Browse files
minor logging improvements
- Moved Info message to Trace. - When applying a default action on a connection (because the daemon is not connected to the GUI), log the connection details. It eases the task of creating rules without a GUI.
1 parent 8d1a7de commit f23c163

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

daemon/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ func onPacket(packet netfilter.Packet) {
430430
}
431431

432432
func applyDefaultAction(packet *netfilter.Packet, con *conman.Connection) {
433+
log.Trace("Applying DefaultAction (%s) on %s", uiClient.DefaultAction(), con)
433434
if uiClient.DefaultAction() == rule.Allow {
434435
packet.SetVerdictAndMark(netfilter.NF_ACCEPT, packet.Mark)
435436
return

daemon/procmon/ebpf/find.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func getPidFromEbpf(proto string, srcPort uint, srcIP net.IP, dstIP net.IP, dstP
112112
log.Debug("[ebpf conn] in cache: %s, %d -> %s", k, proc.ID, proc.Path)
113113
return
114114
}
115-
log.Info("[ebpf conn] in cache, with no proc %s, %d", k, cacheItem.Pid)
115+
log.Trace("[ebpf conn] in cache, with no proc %s, %d", k, cacheItem.Pid)
116116
return
117117
}
118118

0 commit comments

Comments
 (0)