From 77c10057face4f3313f2a6f889f608a194b33373 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 23 Sep 2024 11:51:14 +0200 Subject: [PATCH] add more logs --- mqtt2prom/run | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/mqtt2prom/run b/mqtt2prom/run index d5a0c6e..c5b8e93 100755 --- a/mqtt2prom/run +++ b/mqtt2prom/run @@ -86,17 +86,8 @@ $mqtt->onMessage(function ($message) use ( $data[] = $payload; $news = true; $v = []; - foreach ($$payload["labels"] as $key => $value) { - $v[] = $key . "=" . $value; - } - logit( - "got message for " . - $payload["name"] . - ": " . - implode(", ", $payload["labels"]) . - " with value " . - implode(", ", $v) - ); + + logit("got message"); }); logit("Subscribing to $mqttTopic with QoS $qos ");