mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 19:46:54 +03:00
added log level to logfile, adjusted some loglevels
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user