]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/update.php
Merge pull request #1895 from lonvia/update-less-quiet
[nominatim.git] / utils / update.php
index 189a18255090732a4d62f08f9436caa8447b99da..cba58d3119180009b8b12a00d83ef48d659c1d53 100644 (file)
@@ -103,7 +103,9 @@ $oIndexCmd = (new \Nominatim\Shell(CONST_BasePath.'/nominatim/nominatim.py'))
              ->addParams('--database', $aDSNInfo['database'])
              ->addParams('--port', $aDSNInfo['port'])
              ->addParams('--threads', $aResult['index-instances']);
-
+if (!$aResult['quiet']) {
+    $oIndexCmd->addParams('--verbose');
+}
 if ($aResult['verbose']) {
     $oIndexCmd->addParams('--verbose');
 }
@@ -151,7 +153,6 @@ if ($aResult['init-updates']) {
                                       'enable-diff-updates' => true,
                                       'verbose' => $aResult['verbose']
                                      ));
-        $cSetup->connect();
         $cSetup->createFunctions();
     }