From 040d162ba96a1b1dd8a152738f54e9456de05b53 Mon Sep 17 00:00:00 2001 From: Trevor Pering Date: Tue, 7 Jan 2025 14:44:19 -0800 Subject: [PATCH] pull_mqtt diagnostics --- bin/pull_mqtt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pull_mqtt b/bin/pull_mqtt index 2aae52b09..daa3b9222 100755 --- a/bin/pull_mqtt +++ b/bin/pull_mqtt @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex UDMI_ROOT=$(dirname $0)/.. cd $UDMI_ROOT @@ -54,6 +54,7 @@ sudo mosquitto_sub $SERVER_OPTS -R -F "%j" -t $topic_filter | out_path=$OUT_BASE/$registryId/devices/$deviceId/${timepath}/${usetime}_${subFolder}_${subType} out_dir=$(dirname $out_path) mkdir -p $out_dir + echo out_path is $out_path echo $(realpath --relative-to $OUT_BASE $out_path).json $topic echo $json > $out_path.json echo {} | jq ".deviceRegistryId=\"$registryId\" | \