Skip to content

Commit e5de8bd

Browse files
stevvooeestesp
authored andcommitted
server: only warn on failed OOM score adjust
Signed-off-by: Stephen J Day <[email protected]>
1 parent 89623f2 commit e5de8bd

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)