Revert "mqtt: promote publish-error log paths to inform() for debuggability"

This commit is contained in:
Mike Brady
2026-04-20 10:09:44 +01:00
committed by GitHub
parent 4ecd42eda3
commit 32458c08aa
+2 -3
View File
@@ -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;
}
}