Disable heap logs by default (#1464)

* disabale heap logs by default

* Cleanup log (INFO->DEBUG)
This commit is contained in:
Slider0007
2022-12-02 17:00:31 +01:00
committed by GitHub
parent 45a3138d28
commit a8b9acf170
9 changed files with 29 additions and 20 deletions

View File

@@ -564,7 +564,7 @@ bool ClassFlowControll::ReadParameter(FILE* pfile, string& aktparamgraph)
int ClassFlowControll::CleanTempFolder() {
const char* folderPath = "/sdcard/img_tmp";
ESP_LOGI(TAG, "Clean up temporary folder to avoid damage of sdcard sectors : %s", folderPath);
ESP_LOGD(TAG, "Clean up temporary folder to avoid damage of sdcard sectors : %s", folderPath);
DIR *dir = opendir(folderPath);
if (!dir) {
ESP_LOGE(TAG, "Failed to stat dir : %s", folderPath);
@@ -586,7 +586,7 @@ int ClassFlowControll::CleanTempFolder() {
}
}
closedir(dir);
ESP_LOGI(TAG, "%d files deleted", deleted);
ESP_LOGD(TAG, "%d files deleted", deleted);
return 0;
}
@@ -674,10 +674,10 @@ esp_err_t ClassFlowControll::GetJPGStream(std::string _fn, httpd_req_t *req)
if (_send)
{
ESP_LOGI(TAG, "Sending file : %s ...", _fn.c_str());
ESP_LOGD(TAG, "Sending file : %s ...", _fn.c_str());
set_content_type_from_file(req, _fn.c_str());
result = _send->SendJPGtoHTTP(req);
ESP_LOGI(TAG, "File sending complete");
ESP_LOGD(TAG, "File sending complete");
/* Respond with an empty chunk to signal HTTP response completion */
httpd_resp_send_chunk(req, NULL, 0);
}