@@ -104,7 +104,7 @@ void HubWebServer::start() {
104104 // Chunked response to optimize RAM usage
105105 size_t content_length = index_html_gz_len;
106106
107- INFO (" webserver() - Size of response is %d" , content_length);
107+ DEBUG (" webserver() - Size of response is %d" , content_length);
108108 PsychicStreamResponse response (resp, " text/html" );
109109
110110 response.addHeader (" Cache-Control" , " no-cache, must-revalidate" );
@@ -122,7 +122,7 @@ void HubWebServer::start() {
122122 // Chunked response to optimize RAM usage
123123 size_t content_length = main_js_gz_len;
124124
125- INFO (" webserver() - Size of response is %d" , content_length);
125+ DEBUG (" webserver() - Size of response is %d" , content_length);
126126 PsychicStreamResponse response (resp, " text/javascript" );
127127
128128 response.addHeader (" Cache-Control" , " no-cache, must-revalidate" );
@@ -140,7 +140,7 @@ void HubWebServer::start() {
140140 // Chunked response to optimize RAM usage
141141 size_t content_length = style_css_gz_len;
142142
143- INFO (" webserver() - Size of response is %d" , content_length);
143+ DEBUG (" webserver() - Size of response is %d" , content_length);
144144 PsychicStreamResponse response (resp, " text/css" );
145145
146146 response.addHeader (" Cache-Control" , " no-cache, must-revalidate" );
@@ -204,7 +204,7 @@ void HubWebServer::start() {
204204 // Chunked response to optimize RAM usage
205205 size_t content_length = index_html_gz_len;
206206
207- INFO (" webserver() - Size of response is %d" , content_length);
207+ DEBUG (" webserver() - Size of response is %d" , content_length);
208208 PsychicStreamResponse response (resp, " text/html" );
209209
210210 response.addHeader (" Cache-Control" , " no-cache, must-revalidate" );
@@ -218,7 +218,7 @@ void HubWebServer::start() {
218218 PsychicUploadHandler *projectPutHandler = new PsychicUploadHandler ();
219219 projectPutHandler->onUpload ([this ](PsychicRequest *request, const String &filename, uint64_t position, uint8_t *data, size_t length, bool final ) {
220220
221- INFO (" webserver() - got data chunk with position %llu and length %u" , position, length);
221+ DEBUG (" webserver() - got data chunk with position %llu and length %u" , position, length);
222222
223223 String uri = request->uri ().substring (9 );
224224 int p = uri.indexOf (' /' );
@@ -232,10 +232,10 @@ void HubWebServer::start() {
232232 File content;
233233
234234 if (position == 0 ) {
235- INFO (" webserver() - creating file %s" , file.c_str ());
235+ DEBUG (" webserver() - creating file %s" , file.c_str ());
236236 content = fs_->open (file, FILE_WRITE , true );
237237 } else {
238- INFO (" webserver() - opening file %s for append" , file.c_str ());
238+ DEBUG (" webserver() - opening file %s for append" , file.c_str ());
239239 content = fs_->open (file, FILE_APPEND );
240240 }
241241
@@ -276,16 +276,16 @@ void HubWebServer::start() {
276276 PsychicUploadHandler *projectSyntaxCheckHandler = new PsychicUploadHandler ();
277277 projectSyntaxCheckHandler->onUpload ([this ](PsychicRequest *request, const String &filename, uint64_t position, uint8_t *data, size_t length, bool final ) {
278278
279- INFO (" webserver() - got data chunk with position %llu and length %u" , position, length);
279+ DEBUG (" webserver() - got data chunk with position %llu and length %u" , position, length);
280280
281281 String file = " /~syntaxcheck.lua" ;
282282 File content;
283283
284284 if (position == 0 ) {
285- INFO (" webserver() - creating file %s" , file.c_str ());
285+ DEBUG (" webserver() - creating file %s" , file.c_str ());
286286 content = fs_->open (file, FILE_WRITE , true );
287287 } else {
288- INFO (" webserver() - opening file %s for append" , file.c_str ());
288+ DEBUG (" webserver() - opening file %s for append" , file.c_str ());
289289 content = fs_->open (file, FILE_APPEND );
290290 }
291291
@@ -342,16 +342,16 @@ void HubWebServer::start() {
342342 PsychicUploadHandler *executeHandler = new PsychicUploadHandler ();
343343 executeHandler->onUpload ([this ](PsychicRequest *request, const String &filename, uint64_t position, uint8_t *data, size_t length, bool final ) {
344344
345- INFO (" webserver() - got data chunk with position %llu and length %u" , position, length);
345+ DEBUG (" webserver() - got data chunk with position %llu and length %u" , position, length);
346346
347347 String file = " /~execute.lua" ;
348348 File content;
349349
350350 if (position == 0 ) {
351- INFO (" webserver() - creating file %s" , file.c_str ());
351+ DEBUG (" webserver() - creating file %s" , file.c_str ());
352352 content = fs_->open (file, FILE_WRITE , true );
353353 } else {
354- INFO (" webserver() - opening file %s for append" , file.c_str ());
354+ DEBUG (" webserver() - opening file %s for append" , file.c_str ());
355355 content = fs_->open (file, FILE_APPEND );
356356 }
357357
@@ -457,7 +457,7 @@ bool HubWebServer::isStarted() {
457457}
458458
459459void HubWebServer::ssdpNotify () {
460- INFO (" Sent SSDP NOTIFY messages" );
460+ DEBUG (" Sent SSDP NOTIFY messages" );
461461
462462 const IPAddress SSDP_MULTICAST_ADDR (239 , 255 , 255 , 250 );
463463 const uint16_t SSDP_PORT = 1900 ;
0 commit comments