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

Commit

Permalink
scripts: Make Collect script consider log levels
Browse files Browse the repository at this point in the history
Added extra patterns to the collect script to extract specific logs
records at specific log levels; an error log entry is always an error,
regardless of whether it's message text matches any of the other
heuristic patterns.

Fixes #1049.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Mar 7, 2018
1 parent 3efc197 commit 0208f0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/collect-data.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ problem_pattern+="\<impossible\>|"
problem_pattern+="\<impossibly\>|"
problem_pattern+="\<incorrect|"
problem_pattern+="\<invalid\>|"
problem_pattern+="\<level=\"*error\"* |"
problem_pattern+="\<level=\"*fatal\"* |"
problem_pattern+="\<level=\"*panic\"* |"
problem_pattern+="\<level=\"*warning\"* |"
problem_pattern+="\<missing\>|"
problem_pattern+="\<need\>|"
problem_pattern+="\<no.*such.*file\>|"
Expand Down

0 comments on commit 0208f0b

Please sign in to comment.