From ed20d55f298b09e57293b021d41ba94f9ce7b2c9 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Fri, 22 May 2020 11:54:12 -0500 Subject: [PATCH] Tail different log types --- gravity-sync.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index ce10c9a..48adaf1 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -112,8 +112,12 @@ function push_gs { # Logging Functions ## Check Log Function function logs_gs { - echo -e "These are the last three valid PULL timestamps" - tail -n 3 ${SYNCING_LOG} + echo -e "Last few PULL attempts" + tail -n 10 ${SYNCING_LOG} | grep PULL + echo -e "Last few PULL attempts" + tail -n 10 ${SYNCING_LOG} | grep PUSH + echo -e "Last few UPDATE attempts" + tail -n 10 ${SYNCING_LOG} | grep UPDATE } ## Log Out