Skip to content

Commit

Permalink
Change cgroups log line from Infof from Debugf (#175)
Browse files Browse the repository at this point in the history
## What does this PR do?

This is a one-liner that removes an erroneous `Infof()` debug line that
should have been a `Debugf()` line.

## Why is it important?

This can create lots of logging noise.

## Checklist

- [x] My code follows the style guidelines of this project
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added tests that prove my fix is effective or that my
feature works
  • Loading branch information
fearful-symmetry authored Aug 12, 2024
1 parent 03c1ea3 commit e622b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metric/system/cgroup/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func (r *Reader) ProcessCgroupPaths(pid int) (PathList, error) {
logp.L().Debugf("cgroup for process %d contains a relative cgroup path (%s), but we were not able to find a root cgroup. Cgroup monitoring for this PID may be incomplete",
pid, path)
} else {
logp.L().Infof("using root mount %s and path %s", r.cgroupMountpoints.ContainerizedRootMount, path)
logp.L().Debugf("using root mount %s and path %s", r.cgroupMountpoints.ContainerizedRootMount, path)
path = filepath.Join(r.cgroupMountpoints.ContainerizedRootMount, path)
}
}
Expand Down

0 comments on commit e622b66

Please sign in to comment.