Skip to content

Commit

Permalink
Revert "Revert "Change log Info level to Debug level in less signific…
Browse files Browse the repository at this point in the history
…ant log lines""
  • Loading branch information
sadhyama authored Sep 27, 2023
1 parent af374b1 commit 4f1871c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/mqttcm_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,10 @@ int publish_notify_mqtt(char *pub_topic, void *payload, ssize_t len)

rc = mosquitto_publish_v5(mosq, NULL, pub_topic, len, payload, 2, false, props);

MqttCMInfo("Publish rc %d\n", rc);
MqttCMDebug("Publish rc %d\n", rc);
if(rc != MOSQ_ERR_SUCCESS)
{
MqttCMError("Error publishing: %s\n", mosquitto_strerror(rc));
MqttCMError("Error publishing: %s and publish rc: %d\n", mosquitto_strerror(rc), rc);
}
else
{
Expand Down Expand Up @@ -1279,7 +1279,7 @@ rbusError_t MqttPublishMethodHandler(rbusHandle_t handle, char const* methodName

//char *pub_get_topic = NULL;

MqttCMInfo("methodHandler called: %s\n", methodName);
MqttCMDebug("methodHandler called: %s\n", methodName);
//rbusObject_fwrite(inParams, 1, stdout);
if(strncmp(methodName, MQTT_PUBLISH_PARAM, maxParamLen) == 0)
{
Expand Down Expand Up @@ -1332,7 +1332,7 @@ rbusError_t MqttPublishMethodHandler(rbusHandle_t handle, char const* methodName
qos_str = (char *) rbusValue_GetString(qos,NULL);
if(qos_str)
{
MqttCMInfo("qos from TR181 is %s\n",qos_str);
MqttCMDebug("qos from TR181 is %s\n",qos_str);
}
}
}
Expand All @@ -1344,15 +1344,15 @@ rbusError_t MqttPublishMethodHandler(rbusHandle_t handle, char const* methodName

if (payload_bytes != NULL)
{
MqttCMInfo("Length of the payload bytes before publishing is %d\n", msg_len);
MqttCMDebug("Length of the payload bytes before publishing is %d\n", msg_len);
publish_notify_mqtt(topic_str, payload_bytes, msg_len);
}
else if (payload_str != NULL)
{
MqttCMInfo("Length of the payload string before publishing is %zu\n", strlen(payload_str));
MqttCMDebug("Length of the payload string before publishing is %zu\n", strlen(payload_str));
publish_notify_mqtt(topic_str, payload_str, strlen(payload_str));
}
MqttCMInfo("publish_notify_mqtt done\n");
MqttCMDebug("publish_notify_mqtt done\n");
}
else
{
Expand Down

0 comments on commit 4f1871c

Please sign in to comment.