Import/Core_geoip.php
[Pman.Core] / Import / Core_geoip.php
index 2721381..8f01de9 100644 (file)
@@ -37,9 +37,15 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo
             $this->jerr('GeoLite2-City-Locations.csv OR GeoLite2-City-Blocks.csv does not exists?!');
         }
         
+        $this->log("Insert location data started");
+        
         $this->insertLocation($location);
         
+        $this->log("Insert Block data end");
+        
         $this->insertBlock($block);
+        
+        $this->jok("DONE");
     }
     
     function insertLocation($csv)
@@ -251,6 +257,7 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo
     {
         if(empty($this->id_mapping[$row['GEONAME_ID']])){
             $this->log("Missing mapping for {$row['GEONAME_ID']}");
+            $this->log("IP : {$row['NETWORK_START_IP']}");
             return;
         }