Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
scripts: Ignore qemu startup message
Browse files Browse the repository at this point in the history
Don't consider the hypervisor startup log message as a "problem".

Fixes #969.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
jodh-intel committed Jan 30, 2018
1 parent efec047 commit 0f8b25d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/collect-data.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ problem_pattern+="\<warning\>|"
problem_pattern+="\<wrong\>"
problem_pattern+=")"

# List of patterns used to exclude messages that are not problems
problem_exclude_pattern="("
problem_exclude_pattern+="\<launching .* with:"
problem_exclude_pattern+=")"

usage()
{
cat <<EOT
Expand Down Expand Up @@ -218,6 +223,7 @@ find_system_journal_problems()
local problems=$(journalctl -q -o cat -a "$selector" "$program" |\
grep "time=" |\
egrep -i "$problem_pattern" |\
egrep -iv "$problem_exclude_pattern" |\
tail -n ${PROBLEM_LIMIT})

if [ -n "$problems" ]; then
Expand Down

0 comments on commit 0f8b25d

Please sign in to comment.