mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-24 02:35:41 +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:
parent
63cc957fc6
commit
74731d9b44
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue