main/task_http.c

changeset 47
2aab3b5af4b5
parent 41
7639cfa6aec0
child 54
7b134c27fadb
--- a/main/task_http.c	Wed May 08 13:46:30 2019 +0200
+++ b/main/task_http.c	Fri May 17 15:39:05 2019 +0200
@@ -382,9 +382,13 @@
 		    	vTaskDelay(5 / portTICK_PERIOD_MS);
 		    }
 		    closedir(dir);
-	    	}
+	    	} else {
+		    ESP_LOGE(TAG, "Error %d open directory /sdcard/w/log", errno);
+		}    
 	    	fprintf(dest, "]}]}");
 	    	fclose(dest);
+	    } else {
+		ESP_LOGE(TAG, "Error %d write /spiffs/w/logfiles.json", errno);
 	    }
 	    http_sendfile(conn, "/logfiles.json", NULL, ipstr);
 	    netconn_close(conn);

mercurial