From 953c7a2bbecf871a94ef843ed68900fb3d9d0856 Mon Sep 17 00:00:00 2001
From: Alexandre <44178713+alexbelgium@users.noreply.github.com>
Date: Wed, 5 Feb 2025 11:28:17 +0100
Subject: [PATCH] 5 last log lines
---
birdnet-pi/rootfs/custom-services.d/30-monitoring.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh
index 7aa5e84d3..2990bda5c 100755
--- a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh
+++ b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh
@@ -90,8 +90,8 @@ apprisealert() {
notification+="$stopped_service"
notification+="
System: ${SITE_NAME:-$(hostname)}"
notification+="
Available disk space: $(df -h "$HOME/BirdSongs" | awk 'NR==2 {print $4}')"
- notification+="
----------------------"
- notification+="
3 last log lines: $(timeout 15 cat /proc/1/fd/1 | head -n 3)"
+ notification+="
----Last log lines----"
+ notification+="
$(timeout 15 cat /proc/1/fd/1 | head -n 5)"
notification+="
----------------------"
[[ -n "$BIRDNETPI_URL" ]] && notification+="
Access your BirdNET-Pi"