logging
This commit is contained in:
@@ -130,6 +130,7 @@ String humanReadableSize(const size_t bytes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void handleUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
|
void handleUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
|
||||||
|
String logmessage;
|
||||||
if (!index) {
|
if (!index) {
|
||||||
logmessage = "Upload Start: " + String(filename);
|
logmessage = "Upload Start: " + String(filename);
|
||||||
// open the file on first call and store the file handle in the request object
|
// open the file on first call and store the file handle in the request object
|
||||||
@@ -142,7 +143,7 @@ void handleUpload(AsyncWebServerRequest *request, String filename, size_t index,
|
|||||||
request->_tempFile.write(data, len);
|
request->_tempFile.write(data, len);
|
||||||
|
|
||||||
//logmessage = "Writing file: " + String(filename) + " index=" + String(index) + " len=" + String(len);
|
//logmessage = "Writing file: " + String(filename) + " index=" + String(index) + " len=" + String(len);
|
||||||
Serial.println(logmessage);
|
//Serial.println(logmessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (final) {
|
if (final) {
|
||||||
|
|||||||
Reference in New Issue
Block a user