From e30742904ef5a9ec06667ab3de16b3f32765bde3 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 17 Apr 2026 15:17:15 +0200 Subject: [PATCH] allow to adjust the log level globally (notify-push) Signed-off-by: Simon L. --- Containers/notify-push/healthcheck.sh | 4 ++++ Containers/notify-push/start.sh | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/Containers/notify-push/healthcheck.sh b/Containers/notify-push/healthcheck.sh index e2539436..c17ab9cf 100644 --- a/Containers/notify-push/healthcheck.sh +++ b/Containers/notify-push/healthcheck.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + if ! nc -z "$NEXTCLOUD_HOST" 9001; then exit 0 fi diff --git a/Containers/notify-push/start.sh b/Containers/notify-push/start.sh index 45532622..335a299d 100644 --- a/Containers/notify-push/start.sh +++ b/Containers/notify-push/start.sh @@ -1,5 +1,11 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + +export RUST_LOG="$AIO_LOG_LEVEL" + if [ -z "$NEXTCLOUD_HOST" ]; then echo "NEXTCLOUD_HOST needs to be provided. Exiting!" exit 1