Merge pull request #2192 from mikebrady/revert-2188-mqtt-inform-publish-errors
Revert "mqtt: promote publish-error log paths to inform() for debuggability" This needs to be done to the `development` branch.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user