       if ( request->authenticate( www_username, readStringNVS( passwordKeyNVS, www_default_passw ).c_str() ) )
       {
         startTimer = millis();
-        Serial.printf( "Starting upload. filename = %s\n", filename.c_str() );
+        ESP_LOGI( TAG, "Starting upload. filename = %s\n", filename.c_str() );
         if ( !filename.startsWith( "/" ) )
         {
           filename = "/" + filename;

    const char* notFound = "NOT_FOUND: ";

    if ( request->method() == HTTP_GET )
      Serial.printf( "%s GET", notFound );
    else if (request->method() == HTTP_POST)
      Serial.printf("%s POST", notFound );
    else if (request->method() == HTTP_DELETE)
      Serial.printf("%s DELETE", notFound );
    else if (request->method() == HTTP_PUT)
      Serial.printf("%s PUT", notFound );
    else if (request->method() == HTTP_PATCH)
      Serial.printf("%s PATCH", notFound );
    else if (request->method() == HTTP_HEAD)
      Serial.printf("%s HEAD", notFound );
    else if (request->method() == HTTP_OPTIONS)
      Serial.printf("%s OPTIONS", notFound );
    else
      Serial.printf("%s UNKNOWN", notFound );
    Serial.printf(" http://%s%s\n", request->host().c_str(), request->url().c_str());
    request->send( 404 );
  });

  DefaultHeaders::Instance().addHeader( "Access-Control-Allow-Origin", "*" );

  server.begin();
  Serial.println("HTTP server setup done.");

  vTaskDelete( NULL );
}


void webServerTask ( void * pvParameters )
{
  ESP_LOGI( TAG, "Starting webserver setup. " );

  server.on( "/api/login", HTTP_POST, []( AsyncWebServerRequest * request )
  {
