Skip to content

Commit 30fc96b

Browse files
mdegat01agners
andauthored
Verbose logging only if in debug mode (#112)
* Verbose logging only if in debug mode * Fix conditional Co-authored-by: Stefan Agner <stefan@agner.ch> * Use bashio Co-authored-by: Stefan Agner <stefan@agner.ch>
1 parent 63e0309 commit 30fc96b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • rootfs/etc/services.d/pulseaudio

rootfs/etc/services.d/pulseaudio/run

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@
55
export PULSE_STATE_PATH="/data/states"
66
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
77

8-
exec pulseaudio --system -vvv --disallow-exit --exit-idle-time=-1 --disable-shm
8+
debug="$(bashio::jq /config/plugin_audio.json '.debug')"
9+
log_level=""
10+
11+
if bashio::var.true "${debug}"; then
12+
log_level='-vvv'
13+
fi
14+
15+
exec pulseaudio --system --disallow-exit --exit-idle-time=-1 --disable-shm "$log_level"

0 commit comments

Comments
 (0)