Skip to content

Commit 74481cb

Browse files
Merge branch 'fix/log_level_on_timeout' into 'master'
fix: Adjust the log level on few messages to avoid cluthering the logs See merge request espressif/esp-mqtt!201
2 parents c33a0c8 + 5c17fc4 commit 74481cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mqtt_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int esp_mqtt_handle_transport_read_error(int err, esp_mqtt_client_handle_
6262
return -1;
6363
}
6464
// Not an error, continue
65-
ESP_LOGD(TAG, "%s: transport_read(): call timed out before data was ready!", __func__);
65+
ESP_LOGV(TAG, "%s: transport_read(): call timed out before data was ready!", __func__);
6666
return 0;
6767
}
6868

@@ -1302,7 +1302,7 @@ static int mqtt_message_receive(esp_mqtt_client_handle_t client, int read_poll_t
13021302
return 0;
13031303
}
13041304
}
1305-
ESP_LOGD(TAG, "%s: transport_read():%"NEWLIB_NANO_COMPAT_FORMAT" %"NEWLIB_NANO_COMPAT_FORMAT, __func__,
1305+
ESP_LOGV(TAG, "%s: transport_read():%"NEWLIB_NANO_COMPAT_FORMAT" %"NEWLIB_NANO_COMPAT_FORMAT, __func__,
13061306
NEWLIB_NANO_COMPAT_CAST(client->mqtt_state.in_buffer_read_len), NEWLIB_NANO_COMPAT_CAST(client->mqtt_state.message_length));
13071307
return 1;
13081308
err:

0 commit comments

Comments
 (0)