mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Add log level configuration and debug option
This commit is contained in:
@@ -8,7 +8,9 @@ config["MySelf"]="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BA
|
|||||||
|
|
||||||
declare -a dns_servers_ipv4=()
|
declare -a dns_servers_ipv4=()
|
||||||
declare -a dns_servers_ipv6=()
|
declare -a dns_servers_ipv6=()
|
||||||
|
|
||||||
log_level="$(bashio::config "log_level")"
|
log_level="$(bashio::config "log_level")"
|
||||||
|
[[ "$log_level" == "debug" ]] && set -x
|
||||||
|
|
||||||
_parse_config() {
|
_parse_config() {
|
||||||
local -n config_ref="$1"
|
local -n config_ref="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user