Skip to content

Commit

Permalink
Workaround for missing log level in matter add-on (#3118)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jun 28, 2023
1 parent 8e0311a commit 589a0d7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ bashio::log.info "Starting Matter Server..."
declare server_port
declare log_level

log_level=$(bashio::string.lower "$(bashio::config log_level)")
log_level=$(bashio::string.lower "$(bashio::config log_level invalid)")
if [ "$log_level" = "invalid" ]; then
bashio::log.magenta 'Received invalid log_level from config, fallback to info'
log_level="info"
fi

# Bind to internal hassio network only unless user requests to expose
server_port="$(bashio::addon.port 5580)"
Expand Down

0 comments on commit 589a0d7

Please sign in to comment.