Skip to content

Commit 2689c98

Browse files
authored
Merge pull request #1909 from estesp/backport-oom-warn-only
[release/1.0] BACKPORT: server: only warn on failed OOM score adjust
2 parents 89623f2 + e5de8bd commit 2689c98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/server_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ func apply(ctx context.Context, config *Config) error {
1919
}
2020
}
2121
if config.OOMScore != 0 {
22-
log.G(ctx).Infof("changing OOM score to %d", config.OOMScore)
22+
log.G(ctx).Debugf("changing OOM score to %d", config.OOMScore)
2323
if err := sys.SetOOMScore(os.Getpid(), config.OOMScore); err != nil {
24-
return err
24+
log.G(ctx).WithError(err).Errorf("failed to change OOM score to %d", config.OOMScore)
2525
}
2626
}
2727
if config.Cgroup.Path != "" {

0 commit comments

Comments
 (0)