Browse Source

remove some verbose logs - release

Sebastien 5 years ago
parent
commit
b215f5ddec

+ 2 - 2
components/squeezelite-ota/component.mk

@@ -8,6 +8,6 @@ COMPONENT_ADD_INCLUDEDIRS := .
 COMPONENT_ADD_INCLUDEDIRS += include
 COMPONENT_EXTRA_INCLUDES += $(PROJECT_PATH)/main/
 COMPONENT_EXTRA_INCLUDES += $(PROJECT_PATH)/components/tools
-#CFLAGS += -D LOG_LOCAL_LEVEL=ESP_LOG_INFO -DCONFIG_OTA_ALLOW_HTTP=1
-CFLAGS += -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -DCONFIG_OTA_ALLOW_HTTP=1
+CFLAGS += -D LOG_LOCAL_LEVEL=ESP_LOG_INFO -DCONFIG_OTA_ALLOW_HTTP=1
+#CFLAGS += -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -DCONFIG_OTA_ALLOW_HTTP=1
 COMPONENT_EMBED_TXTFILES :=  ${PROJECT_PATH}/server_certs/github.pem

+ 2 - 4
components/squeezelite-ota/squeezelite-ota.c

@@ -7,7 +7,7 @@
    CONDITIONS OF ANY KIND, either express or implied.
 */
 #ifndef LOG_LOCAL_LEVEL
-#define LOG_LOCAL_LEVEL ESP_LOG_DEBUG
+#define LOG_LOCAL_LEVEL ESP_LOG_INFO
 #endif
 #include "freertos/FreeRTOS.h"
 #include "freertos/task.h"
@@ -478,8 +478,7 @@ void RECOVERY_IRAM_FUNCTION ota_task(void *pvParameter)
             FREE_RESET(ota_write_data);
             task_fatal_error();
         } else if (data_read > 0) {
-        	_printMemStats();
-            if (image_header_was_checked == false) {
+        	if (image_header_was_checked == false) {
                 esp_app_desc_t new_app_info;
                 if (data_read > sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t) + sizeof(esp_app_desc_t)) {
                     // check current version with downloading
@@ -536,7 +535,6 @@ void RECOVERY_IRAM_FUNCTION ota_task(void *pvParameter)
                     task_fatal_error();
                 }
             }
-            _printMemStats();
             err = esp_ota_write( update_handle, (const void *)ota_write_data, data_read);
             if (err != ESP_OK) {
             	triggerStatusJsonRefresh(true,"Error: OTA Partition write failure. (%s)",esp_err_to_name(err));