Skip to content

Commit

Permalink
Move already instrumented executable log messages to Debug level (#1227)
Browse files Browse the repository at this point in the history
* Move already instrumented executable log messages to Debug level

* move new process message also to debug
  • Loading branch information
mariomac authored Oct 7, 2024
1 parent 38c3b6d commit 5b96a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/internal/discover/attacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5b96a1c

Please sign in to comment.