]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Revert "mqtt: promote publish-error log paths to inform() for debuggability" 2192/head
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 20 Apr 2026 09:09:44 +0000 (10:09 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2026 09:09:44 +0000 (10:09 +0100)
mqtt.c

diff --git a/mqtt.c b/mqtt.c
index 35361e3909571a679e4081e93d8225b88945217c..64cc1aa9c8fe95a58572ca4891e4898998a35f7c 100644 (file)
--- a/mqtt.c
+++ b/mqtt.c
@@ -259,11 +259,10 @@ void mqtt_publish(char *topic, char *data_in, uint32_t length_in) {
       MOSQ_ERR_SUCCESS) {
     switch (rc) {
     case MOSQ_ERR_NO_CONN:
-      inform("[MQTT]: Publish to topic \"%s\" failed: not connected to broker", fulltopic);
+      debug(1, "[MQTT]: Publish failed: not connected to broker");
       break;
     default:
-      inform("[MQTT]: Publish to topic \"%s\" failed: %s (rc=%d)", fulltopic,
-             mosquitto_strerror(rc), rc);
+      debug(1, "[MQTT]: Publish failed: unknown error");
       break;
     }
   }