From d69939f0102f4834d60626baaba8e700a088b602 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 (talk-recording) Signed-off-by: Simon L. --- Containers/talk-recording/healthcheck.sh | 4 ++++ Containers/talk-recording/start.sh | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Containers/talk-recording/healthcheck.sh b/Containers/talk-recording/healthcheck.sh index 8397ab3c..2750d59e 100644 --- a/Containers/talk-recording/healthcheck.sh +++ b/Containers/talk-recording/healthcheck.sh @@ -1,3 +1,7 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + nc -z 127.0.0.1 1234 || exit 1 diff --git a/Containers/talk-recording/start.sh b/Containers/talk-recording/start.sh index aac20432..bb7d2ea4 100644 --- a/Containers/talk-recording/start.sh +++ b/Containers/talk-recording/start.sh @@ -1,5 +1,17 @@ #!/bin/bash +if [ "$AIO_LOG_LEVEL" = 'debug' ]; then + set -x +fi + +TALK_RECORDING_LOG_LEVEL="$(case "$AIO_LOG_LEVEL" in + debug) printf '10' ;; + info) printf '20' ;; + warn) printf '30' ;; + error) printf '40' ;; +esac)" +export TALK_RECORDING_LOG_LEVEL + # Variables if [ -z "$NC_DOMAIN" ]; then echo "You need to provide the NC_DOMAIN." @@ -49,7 +61,7 @@ fi cat << RECORDING_CONF > "/conf/recording.conf" [logs] # 30 means Warning -level = 30 +level = ${TALK_RECORDING_LOG_LEVEL} [http] listen = 0.0.0.0:1234