Improve logging

This commit is contained in:
Daniel
2021-08-18 09:34:00 +02:00
parent f2bc518e2f
commit b314b46fb8
2 changed files with 5 additions and 4 deletions

View File

@@ -50,7 +50,9 @@ func updatePids() {
statData, err := os.Stat(fmt.Sprintf("/proc/%d", pid))
if err != nil {
log.Warningf("proc: could not stat /proc/%d: %s", pid, err)
if !os.IsNotExist(err) {
log.Warningf("proc: could not stat /proc/%d: %s", pid, err)
}
continue entryLoop
}
sys, ok := statData.Sys().(*syscall.Stat_t)