Skip to content

Commit

Permalink
Don't fatal on epoll wait
Browse files Browse the repository at this point in the history
This removes a log fatal on epoll wait for OOM events.

Signed-off-by: Michael Crosby <[email protected]>
  • Loading branch information
crosbymichael committed Jul 18, 2018
1 parent dfde5ec commit 9743ff2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metrics/cgroups/oom.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ func (o *oomCollector) start() {
if err == unix.EINTR {
continue
}
logrus.WithField("error", err).Fatal("cgroups: epoll wait")
logrus.WithError(err).Error("cgroups: epoll wait failed, OOM notifications disabled")
return
}
for i := 0; i < n; i++ {
o.process(uintptr(events[i].Fd), events[i].Events)
Expand Down

0 comments on commit 9743ff2

Please sign in to comment.