gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: only analyze logs since 7 days


From: gnunet
Subject: [taler-deployment] branch master updated: only analyze logs since 7 days ago
Date: Fri, 15 Mar 2024 09:30:26 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new d4c6894  only analyze logs since 7 days ago
d4c6894 is described below

commit d4c68949ee1e6ae9b4a8a8295752a92524639556
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Mar 15 09:30:20 2024 +0100

    only analyze logs since 7 days ago
---
 regional-currency/diagnose.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/regional-currency/diagnose.sh b/regional-currency/diagnose.sh
index b76deca..a0c513b 100755
--- a/regional-currency/diagnose.sh
+++ b/regional-currency/diagnose.sh
@@ -112,9 +112,12 @@ for unit in ${all_units[@]}; do
   expect_unit_active "$unit"
 done
 
+SINCE="7 days ago"
+echo "analysing logs since $SINCE"
+
 for unit in ${all_units[@]}; do
-  num_warnings=$(journalctl -u "$unit" | grep WARNING | wc -l)
-  num_errors=$(journalctl -u "$unit" | grep ERROR | wc -l)
+  num_warnings=$(journalctl -u "$unit" --since "$SINCE" | grep WARNING | wc -l)
+  num_errors=$(journalctl -u "$unit" --since "$SINCE" | grep ERROR | wc -l)
   if [[ ( $num_errors -eq 0 ) && ( $num_warnings -eq 0 ) ]]; then
     continue
   fi

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]