]> git.openstreetmap.org Git - nominatim.git/commitdiff
show import_osmosis_log insert statements, print completed log after import_status...
authorIrlJidel <donal.diamond@gmail.com>
Mon, 30 Sep 2013 12:25:30 +0000 (13:25 +0100)
committerIrlJidel <donal.diamond@gmail.com>
Mon, 30 Sep 2013 12:25:30 +0000 (13:25 +0100)
utils/update.php

index ac7b5be842912ffd7c77dd7ecc48bd1606b217d1..069d9e726b0c74dc461d8d3a40cafeac54795433 100755 (executable)
                                        }
                                        $iFileSize = filesize($sImportFile);
                                        $sBatchEnd = getosmosistimestamp($sOsmosisConfigDirectory);
-                                       echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
                                        $sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','osmosis')";
+                                       var_Dump($sSQL);
                                        $oDB->query($sSQL);
+                                       echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
                                }
 
                                $iFileSize = filesize($sImportFile);
                                $sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','osm2pgsql')";
                                var_Dump($sSQL);
                                $oDB->query($sSQL);
+                               echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
 
                                // Archive for debug?
                                unlink($sImportFile);
 
                        // Index file
                        $sThisIndexCmd = $sCMDIndex;
-                        $fCMDStartTime = time();
+                       $fCMDStartTime = time();
 
                        if (!$aResult['no-npi'])
                        {
                                }
                        }
 
-                       echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
                        $sSQL = "INSERT INTO import_osmosis_log values ('$sBatchEnd',$iFileSize,'".date('Y-m-d H:i:s',$fCMDStartTime)."','".date('Y-m-d H:i:s')."','index')";
+                       var_Dump($sSQL);
                        $oDB->query($sSQL);
+                       echo "Completed for $sBatchEnd in ".round((time()-$fCMDStartTime)/60,2)." minutes\n";
 
                        $sSQL = "update import_status set lastimportdate = '$sBatchEnd'";
                        $oDB->query($sSQL);