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 ");