Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_ESP_LOG_to_debug' into 'master'
Browse files Browse the repository at this point in the history
esp_http_client: fix debug log from LOGI to LOGD

Closes IDFGH-8892

See merge request espressif/esp-idf!22011
  • Loading branch information
hmalpani committed Jan 13, 2023
2 parents fd34bdb + 6e92edd commit a1e9a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_http_client/esp_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static int http_on_body(http_parser *parser, const char *at, size_t length)
} else {
/* Do not cache body when http_on_body is called from esp_http_client_perform */
if (client->state < HTTP_STATE_RES_ON_DATA_START && client->cache_data_in_fetch_hdr) {
ESP_LOGI(TAG, "Body received in fetch header state, %p, %zu", at, length);
ESP_LOGD(TAG, "Body received in fetch header state, %p, %zu", at, length);
esp_http_buffer_t *res_buffer = client->response->buffer;
assert(res_buffer->orig_raw_data == res_buffer->raw_data);
res_buffer->orig_raw_data = (char *)realloc(res_buffer->orig_raw_data, res_buffer->raw_len + length);
Expand Down

0 comments on commit a1e9a87

Please sign in to comment.