added log level to logfile, adjusted some loglevels

This commit is contained in:
George Ruinelli
2022-10-22 18:05:08 +02:00
parent 0a2b6b71ca
commit 1e698440f9
22 changed files with 138 additions and 114 deletions

View File

@@ -264,7 +264,7 @@ static esp_err_t http_resp_dir_html(httpd_req_t *req, const char *dirpath, const
static esp_err_t logfileact_get_handler(httpd_req_t *req)
{
LogFile.WriteToFile("logfileact_get_handler");
LogFile.WriteToFile(ESP_LOG_DEBUG, "logfileact_get_handler");
char filepath[FILE_PATH_MAX];
FILE *fd = NULL;
//struct stat file_stat;
@@ -329,7 +329,7 @@ static esp_err_t logfileact_get_handler(httpd_req_t *req)
/* Handler to download a file kept on the server */
static esp_err_t download_get_handler(httpd_req_t *req)
{
LogFile.WriteToFile("download_get_handler");
LogFile.WriteToFile(ESP_LOG_DEBUG, "download_get_handler");
char filepath[FILE_PATH_MAX];
FILE *fd = NULL;
struct stat file_stat;
@@ -430,7 +430,7 @@ static esp_err_t download_get_handler(httpd_req_t *req)
/* Handler to upload a file onto the server */
static esp_err_t upload_post_handler(httpd_req_t *req)
{
LogFile.WriteToFile("upload_post_handler");
LogFile.WriteToFile(ESP_LOG_DEBUG, "upload_post_handler");
char filepath[FILE_PATH_MAX];
FILE *fd = NULL;
struct stat file_stat;
@@ -573,7 +573,7 @@ static esp_err_t upload_post_handler(httpd_req_t *req)
/* Handler to delete a file from the server */
static esp_err_t delete_post_handler(httpd_req_t *req)
{
LogFile.WriteToFile("delete_post_handler");
LogFile.WriteToFile(ESP_LOG_DEBUG, "delete_post_handler");
char filepath[FILE_PATH_MAX];
struct stat file_stat;