From 69eb190310b94b429cce8657534cc160b51333e4 Mon Sep 17 00:00:00 2001 From: hiproz Date: Fri, 6 Aug 2021 12:55:00 +0800 Subject: [PATCH] esp_https_ota: change logs 1. add paired log for line393; 2. change log level to debug Closes https://github.com/espressif/esp-idf/pull/7375 Signed-off-by: Shubham Kulkarni --- components/esp_https_ota/src/esp_https_ota.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_https_ota/src/esp_https_ota.c b/components/esp_https_ota/src/esp_https_ota.c index 910d652c91..56d2d9b4f7 100644 --- a/components/esp_https_ota/src/esp_https_ota.c +++ b/components/esp_https_ota/src/esp_https_ota.c @@ -390,7 +390,7 @@ esp_err_t esp_https_ota_perform(esp_https_ota_handle_t https_ota_handle) } else if (!is_recv_complete) { return ESP_ERR_HTTPS_OTA_IN_PROGRESS; } - ESP_LOGI(TAG, "Connection closed"); + ESP_LOGD(TAG, "Connection closed"); } else if (data_read > 0) { return _ota_write(handle, (const void *)handle->ota_upgrade_buf, data_read); } else { @@ -425,6 +425,7 @@ esp_err_t esp_https_ota_perform(esp_https_ota_handle_t https_ota_handle) ESP_LOGE(TAG, "Failed to establish HTTP connection"); return ESP_FAIL; } + ESP_LOGD(TAG, "Connection start"); return ESP_ERR_HTTPS_OTA_IN_PROGRESS; } }