Skip to content

Commit

Permalink
enhance pattern for issues
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Oct 31, 2024
1 parent 01f2878 commit eeb8fde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playbooks/roles/info_common/tasks/issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ansible.builtin.shell:
cmd: |-
journalctl --since "{{ log_system_since }}" -q |
grep -e 'BUG:' -e 'WARNING:' |
grep -F -e 'BUG at' -e 'BUG:' -e 'WARNING:' -e '------------' |
while read -r issue; do
echo "=="
journalctl --since "{{ log_system_since }}" -q |
Expand Down
4 changes: 2 additions & 2 deletions playbooks/roles/info_common/tasks/log-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
ansible.builtin.shell:
cmd: |-
journalctl --since "{{ log_system_since }}" -q |
grep -m 10 \
-e 'BUG:' -e 'WARNING:' \
grep -m 10 -F \
-e 'BUG at' -e 'BUG:' -e 'WARNING:' -e '------------' \
-e 'Call Trace:' -e 'invoked oom-killer' -e 'RIP:' -e 'status=9/KILL' -e '.service: Failed'
register: _result

Expand Down

0 comments on commit eeb8fde

Please sign in to comment.