Skip to content

Commit 6583189

Browse files
committed
print error message when socket connection fails
This will give application some information that system is running. Signed-off-by: Ajay Bhargav <[email protected]>
1 parent ea6ca0e commit 6583189

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mqttclient/mqttclient.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ static int mqtt_connect_with_results(mqtt_client_t* c)
990990
rc = network_connect(c->mqtt_network);
991991
if (MQTT_SUCCESS_ERROR != rc) {
992992
network_release(c->mqtt_network);
993+
MQTT_LOG_E("mqtt-client:%d mqtt_connect() - mqtt connect error %d", __LINE__, rc);
993994
RETURN_ERROR(rc);
994995
}
995996

0 commit comments

Comments
 (0)