Reduce noisy logging

This commit is contained in:
Daniel
2023-07-21 16:04:02 +02:00
parent 49adef242e
commit e70fd9abd7
5 changed files with 15 additions and 6 deletions

View File

@@ -114,7 +114,8 @@ func ConnectionListenerWorker(ctx context.Context, packets chan packet.Packet) e
PID: int(event.Pid),
})
if isEventValid(event) {
log.Debugf("ebpf: received valid connect event: PID: %d Conn: %s", pkt.Info().PID, pkt)
// DEBUG:
// log.Debugf("ebpf: received valid connect event: PID: %d Conn: %s", pkt.Info().PID, pkt)
packets <- pkt
} else {
log.Warningf("ebpf: received invalid connect event: PID: %d Conn: %s", pkt.Info().PID, pkt)