mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-22 22:18:38 +01:00
add extended logging feats
This commit is contained in:
@@ -14,4 +14,16 @@ if test -f "$CONFIG_FILE"; then
|
||||
else
|
||||
cp /usr/bin/mqtt-manager/panels.yaml.example $CONFIG_FILE
|
||||
fi
|
||||
python /usr/bin/mqtt-manager/main.py
|
||||
|
||||
declare LOGLEVEL
|
||||
declare logtofile
|
||||
LOGLEVEL=$(bashio::config 'loglevel')
|
||||
logtofile=$(bashio::config 'logtofile')
|
||||
|
||||
export LOGLEVEL
|
||||
|
||||
if [[ "$logtofile" == "true" ]]; then
|
||||
python /usr/bin/mqtt-manager/main.py 2>&1 | tee /config/out.log
|
||||
else
|
||||
python /usr/bin/mqtt-manager/main.py
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user