   server.send(404, "text/html", htmlmessage);
   String message = "404 File Not Found\n";
   message += "URI: ";
-  message += server.uri();
+  String uriL = server.uri();
+  message += uriL;
   message += "\nMethod: ";
-  message += (server.method() == HTTP_GET) ? "GET" : "POST";
+  String methodeL = (server.method() == HTTP_GET) ? "GET" : "POST";
+  message += methodeL;
   message += "\nArguments: ";
   message += server.args();
   message += "\n";
+  String argsL;
   for (uint8_t i = 0; i < server.args(); i++) {
+    argsL += ": " + server.argName(i) + "=" + server.arg(i) + " ";
     message += " " + server.argName(i) + ": " + server.arg(i) + "\n";
   }
   Serial.print(message);
+  logtourne();
+  logs[1] = addy;
+  logs[1] += " : 404 : URI=";
+  logs[1] += uriL;
+  logs[1] += " : Methode=";
+  logs[1] += methodeL;
+  logs[1] += " ";
+  logs[1] += argsL;
+  logs[1].replace("<", "</"); //prevent html tags in logs so hackers cant code in log page lol
 }
 
 // function executed in main loop every minute to update sensors data to thingspeak.com

        fadeG();
        previousMillisg = currentMillis;
        attendG = fadecomment(vert);

      }
    }
    if (b != bleu) {

  contenu += liens;
  contenu += "\n<br></div></body></html>\n";
  server.send(200, "text/html", contenu);
  logtourne();
  logs[1] = addy;
  logs[1] += " : Reset : Password=";
  logs[1] += passme;
  logs[1].replace("<", "</"); //prevent html tags in logs so hackers cant code in log page lol
  if (ouireset == 1) {
    Serial.println("Reset dans 10 secondes");
    delay(10000);
