Skip to content

Commit

Permalink
Add FAIL to log warnings search regex
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Mar 30, 2024
1 parent 77200a9 commit 845fff5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 66 deletions.
2 changes: 1 addition & 1 deletion aur
Submodule aur updated from fcc239 to 4d87c4
4 changes: 2 additions & 2 deletions bin/aurto
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ echo_status() {
| cut -c1-"$COLUMNS"

echo
echo "Log warnings: $(dim journalctl -u update-aurto --since \'1 week ago\' \| grep -v \'Skipping all source file integrity\' \| grep -E \'ERROR\|WARNING\' -A5 -B5)"
echo "Log warnings: $(dim journalctl -u update-aurto --since \'1 week ago\' \| grep -v \'Skipping all source file integrity\' \| grep -E \'ERROR\|WARN\|FAIL\' -A5 -B5)"
log_warns=$(
journalctl -u update-aurto --since '1 week ago' \
| grep -v 'Skipping all source file integrity' \
| grep -E 'ERROR|WARNING' -A5 -B5 --color=always \
| grep -E 'ERROR|WARN|FAIL' -A5 -B5 --color=always \
| sed 's/^/ /'
)
if [ -n "$log_warns" ]; then
Expand Down
101 changes: 38 additions & 63 deletions trust-check/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 845fff5

Please sign in to comment.