diff --git a/esp3d/src/modules/http/handles/handle-filenotfound.cpp b/esp3d/src/modules/http/handles/handle-filenotfound.cpp index a216cb22..f08c7af0 100644 --- a/esp3d/src/modules/http/handles/handle-filenotfound.cpp +++ b/esp3d/src/modules/http/handles/handle-filenotfound.cpp @@ -42,6 +42,7 @@ void HTTP_Server:: handle_not_found() String path = _webserver->urlDecode(_webserver->uri()); String contentType = getContentType(path.c_str()); String pathWithGz = path + ".gz"; + log_esp3d("URI: %s", path.c_str()); #if defined (FILESYSTEM_FEATURE) if(ESP_FileSystem::exists(pathWithGz.c_str()) || ESP_FileSystem::exists(path.c_str())) { log_esp3d("Path found `%s`", path.c_str()); diff --git a/esp3d/src/modules/http/handles/upload-mks-files.cpp b/esp3d/src/modules/http/handles/upload-mks-files.cpp index 21fc1552..41952cc3 100644 --- a/esp3d/src/modules/http/handles/upload-mks-files.cpp +++ b/esp3d/src/modules/http/handles/upload-mks-files.cpp @@ -50,6 +50,7 @@ void HTTP_Server::MKSFileupload () size_t fileSize = 0 ; String filename = upload.filename; String sfilename = "s"+filename; + log_esp3d("Filename: %s",filename.c_str() ); //No / in filename if (filename[0]=='/') { filename.remove(0,1); @@ -85,6 +86,7 @@ void HTTP_Server::MKSFileupload () fileSize = _webserver->header("Content-Length").toInt(); } fragmentID = 0; + log_esp3d("Filename: %s Size:%d",filename.c_str(), fileSize); if (MKSService::sendFirstFragment(filename.c_str(), fileSize)) { MKSService::uploadMode(); } diff --git a/esp3d/src/modules/http/http_server.cpp b/esp3d/src/modules/http/http_server.cpp index 35b6a760..bbeaadc1 100644 --- a/esp3d/src/modules/http/http_server.cpp +++ b/esp3d/src/modules/http/http_server.cpp @@ -156,6 +156,7 @@ bool HTTP_Server::StreamSDFile(const char* filename, const char * contentType) void HTTP_Server::pushError(int code, const char * st, uint16_t web_error, uint16_t timeout) { + log_esp3d("%s:%d",st,web_error); if (websocket_terminal_server.started() && st) { String s = "ERROR:" + String(code) + ":"; s+=st;