Skip to content

Commit d8f6e6b

Browse files
fix: downgrade matchContainerID error log to debug level
The getKubernetesPodMetadata function iterates all containers on a node to find the one matching a profiled PID. Non-matching containers are expected - logging each at Error level produces N_processes * M_containers error logs per profiling cycle. Downgrade to Debugf to match the level already used in addPodContainerLabels for the same matchContainerID error. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent cf11981 commit d8f6e6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reporter/metadata/containermetadata.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ func (p *containerMetadataProvider) getKubernetesPodMetadata(ctx context.Context
651651
continue
652652
}
653653
if containerID, err = matchContainerID(cs.ContainerID); err != nil {
654-
log.Error(err)
654+
log.Debugf("failed to get kubernetes container metadata: %v", err)
655655
continue
656656
}
657657
if containerID == pidContainerID {
@@ -671,7 +671,7 @@ func (p *containerMetadataProvider) getKubernetesPodMetadata(ctx context.Context
671671
continue
672672
}
673673
if containerID, err = matchContainerID(cs.ContainerID); err != nil {
674-
log.Error(err)
674+
log.Debugf("failed to get kubernetes container metadata: %v", err)
675675
continue
676676
}
677677
if containerID == pidContainerID {

0 commit comments

Comments
 (0)