From 5b96a1c199d347a3b7d8651ab8351ffeb8309059 Mon Sep 17 00:00:00 2001 From: Mario Macias Date: Mon, 7 Oct 2024 09:25:53 +0200 Subject: [PATCH] Move already instrumented executable log messages to Debug level (#1227) * Move already instrumented executable log messages to Debug level * move new process message also to debug --- pkg/internal/discover/attacher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/internal/discover/attacher.go b/pkg/internal/discover/attacher.go index 44b5606b5..8dcd30ddf 100644 --- a/pkg/internal/discover/attacher.go +++ b/pkg/internal/discover/attacher.go @@ -98,7 +98,7 @@ func (ta *TraceAttacher) skipSelfInstrumentation(ie *ebpf.Instrumentable) bool { //nolint:cyclop func (ta *TraceAttacher) getTracer(ie *ebpf.Instrumentable) bool { if tracer, ok := ta.existingTracers[ie.FileInfo.Ino]; ok { - ta.log.Info("new process for already instrumented executable", + ta.log.Debug("new process for already instrumented executable", "pid", ie.FileInfo.Pid, "child", ie.ChildPids, "exec", ie.FileInfo.CmdExePath) @@ -281,7 +281,7 @@ func (ta *TraceAttacher) monitorPIDs(tracer *ebpf.ProcessTracer, ie *ebpf.Instru func (ta *TraceAttacher) notifyProcessDeletion(ie *ebpf.Instrumentable) { if tracer, ok := ta.existingTracers[ie.FileInfo.Ino]; ok { - ta.log.Info("process ended for already instrumented executable", + ta.log.Debug("process ended for already instrumented executable", "pid", ie.FileInfo.Pid, "exec", ie.FileInfo.CmdExePath) // notifying the tracer to block any trace from that PID