logging
This commit is contained in:
parent
08f3ade9a0
commit
f1d9d96a30
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue