Do not miserably fail if no oom_reaper line found...

This commit is contained in:
Alexandre Aubin 2020-09-05 19:15:34 +02:00
parent fad373c016
commit 9640b22a23

View file

@ -119,7 +119,7 @@ class SystemResourcesDiagnoser(Diagnoser):
def analyzed_kern_log():
cmd = 'tail -n 10000 /var/log/kern.log | grep "oom_reaper: reaped process"'
cmd = 'tail -n 10000 /var/log/kern.log | grep "oom_reaper: reaped process" || true'
out = subprocess.check_output(cmd, shell=True)
lines = out.strip().split("\n")