From 95f70d20828eb42cb90e89b0f2181445e25b268f Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 17 Apr 2026 15:17:17 +0200 Subject: [PATCH] allow to adjust the log level globally (watchtower) Signed-off-by: Simon L. --- Containers/watchtower/start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Containers/watchtower/start.sh b/Containers/watchtower/start.sh index cf16e7a4..16e7caef 100644 --- a/Containers/watchtower/start.sh +++ b/Containers/watchtower/start.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + # Check if socket is available and readable if ! [ -e "/var/run/docker.sock" ]; then echo "Docker socket is not available. Cannot continue." @@ -17,7 +21,7 @@ if [ -f /run/.containerenv ]; then fi if [ -n "$CONTAINER_TO_UPDATE" ]; then - exec /watchtower --cleanup --debug --run-once "$CONTAINER_TO_UPDATE" + exec /watchtower --cleanup --log-level "$AIO_LOG_LEVEL" --run-once "$CONTAINER_TO_UPDATE" else echo "'CONTAINER_TO_UPDATE' is not set. Cannot update anything." exit 1