mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +00:00
zdtm: make grep_errors also grep warnings
It is inspired by the discussion about inotify fix: https://github.com/checkpoint-restore/criu/pull/728#issuecomment-506929427 From one point of view, warnings might be important to understand why we detect some visible change in the environment after c/r-ing the process, and if this change is expected or not. So we should add "Warn" messages to the output. From over point, these warnings if they are expected, can spoil our final logs with a lot of unnecessary details, so add changes in previous patches to silence the most noisy of these warnings. Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
63cc957fc6
commit
74731d9b44
@@ -2062,7 +2062,7 @@ def grep_errors(fname):
|
||||
before.append(l)
|
||||
if len(before) > 5:
|
||||
before.pop(0)
|
||||
if "Error" in l:
|
||||
if "Error" in l or "Warn" in l:
|
||||
if first:
|
||||
print_fname(fname, 'log')
|
||||
print_sep("grep Error", "-", 60)
|
||||
|
Reference in New Issue
Block a user