Skip to content

Commit

Permalink
Change zigbee-shepherd to zigbee-herdsman for DEBUG.
Browse files Browse the repository at this point in the history
@danielwelch probably we should also rename the option, I didn't do it for now as I don't know if it breaks things.
  • Loading branch information
Koenkk authored Sep 28, 2019
1 parent 14a9ec9 commit 3e75108
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zigbee2mqtt-edge/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CONFIG_PATH=/data/options.json

DATA_PATH=$(jq --raw-output ".data_path" $CONFIG_PATH)
ZIGBEE_SHEPHERD_DEBUG=$(jq --raw-output ".zigbee_shepherd_debug // empty" $CONFIG_PATH)
ZIGBEE_HERDSMAN_DEBUG=$(jq --raw-output ".zigbee_shepherd_debug // empty" $CONFIG_PATH)
ZIGBEE_SHEPHERD_DEVICES=$(jq --raw-output ".zigbee_shepherd_devices // empty" $CONFIG_PATH)

# Check if config exists already
Expand All @@ -21,9 +21,9 @@ mkdir -p "$DATA_PATH"
# Parse config
cat "$CONFIG_PATH" | jq 'del(.data_path)' | jq 'del(.zigbee_shepherd_debug)' | jq 'del(.zigbee_shepherd_devices)' > $DATA_PATH/configuration.yaml

if [[ ! -z "$ZIGBEE_SHEPHERD_DEBUG" ]]; then
echo "[Info] Zigbee Shepherd debug logging enabled."
export DEBUG="zigbee-shepherd*"
if [[ ! -z "$ZIGBEE_HERDSMAN_DEBUG" ]]; then
echo "[Info] Zigbee Herdsman debug logging enabled."
export DEBUG="zigbee-herdsman*"
fi

if [[ ! -z "$ZIGBEE_SHEPHERD_DEVICES" ]]; then
Expand Down

0 comments on commit 3e75108

Please sign in to comment.