From 9c0dd2f2d597c8902f049baa2ea552f12409e614 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sun, 15 Dec 2024 16:05:00 +0100 Subject: [PATCH] v9.9 - DietPi-DDNS | Lower severity of journal logs to "warning". In many cases, a server response is not an error, but a success confirmation. Also do not reverse the logs order in main menu, as we show 4 lines of logs now, to cover additional IPv6 requests as well. --- dietpi/dietpi-ddns | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dietpi/dietpi-ddns b/dietpi/dietpi-ddns index 626355df37..547439dd80 100755 --- a/dietpi/dietpi-ddns +++ b/dietpi/dietpi-ddns @@ -291,7 +291,7 @@ Apply() G_EXEC chown dietpi-ddns:dietpi-ddns /var/lib/dietpi/dietpi-ddns/update.sh # Shellcheck false positive: https://github.com/koalaman/shellcheck/issues/2168 # shellcheck disable=SC2016 - echo "curl ${IPFAMILY%and6} -sSfL${http_auth:+ -u '$USERNAME:$PASSWORD'} '$url' 2>&1 > /dev/null | logger -t dietpi-ddns -p 3" >> /var/lib/dietpi/dietpi-ddns/update.sh + echo "curl ${IPFAMILY%and6} -sSfL${http_auth:+ -u '$USERNAME:$PASSWORD'} '$url' 2>&1 > /dev/null | logger -t dietpi-ddns -p 4" >> /var/lib/dietpi/dietpi-ddns/update.sh # shellcheck disable=SC2016 [[ $IPFAMILY == '-4and6' ]] && echo "curl ${IPFAMILY/4and} -sSfL${http_auth:+ -u '$USERNAME:$PASSWORD'} '$url' 2>&1 > /dev/null | logger -t dietpi-ddns -p 4" >> /var/lib/dietpi/dietpi-ddns/update.sh @@ -491,7 +491,7 @@ else # Read status of existing Cron job via last two journal lines: "dietpi-ddns" tag shows curl errors, "cron" tag with "dietpi-ddns" string shows Cron job execution STATUS='Manage DDNS settings to keep your dynamic IP with the static domain provided by your DDNS provider in sync' - [[ $PROVIDER ]] && STATUS="Last DietPi-DDNS logs:\n$(journalctl -r -t dietpi-ddns -t CRON | grep -m2 dietpi-ddns)" + [[ $PROVIDER ]] && STATUS="Last DietPi-DDNS logs:\n$(journalctl -t dietpi-ddns -t CRON | grep -m4 dietpi-ddns)" NEXT_MENU_START='Provider' while Menu_Main; do :; done