aggio
This commit is contained in:
@@ -47,11 +47,12 @@ class ProductUpdateGm extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
set_time_limit(0);
|
||||
ini_set("memory_limit", "512M");
|
||||
$settingora = Setting::where('key', 'update_products')->first();
|
||||
$productLogger = new ProductLogger($settingora, 'updateproducts', true);
|
||||
|
||||
try {
|
||||
set_time_limit(0);
|
||||
ini_set("memory_limit", "512M");
|
||||
$settingora = Setting::where('key', 'update_products')->first();
|
||||
$productLogger = new ProductLogger($settingora, 'updateproducts', true);
|
||||
$productLogger->addLog('inserted', 'PRODOTTI INSERITI' . "\n");
|
||||
$productLogger->addLog('not_inserted', 'EVENTUALI PRODOTTI NON INSERITI' . "\n");
|
||||
$productLogger->addLog('updated', 'PRODOTTI AGGIORNATI' . "\n");
|
||||
@@ -99,7 +100,6 @@ class ProductUpdateGm extends Command
|
||||
$productLogger->setLogandSendEmail('Aggiornamento Prodotti');
|
||||
|
||||
echo "************** Finito **************";
|
||||
|
||||
} catch (\Exception $e) {
|
||||
echo $e->getMessage();
|
||||
|
||||
@@ -107,7 +107,6 @@ class ProductUpdateGm extends Command
|
||||
$productLogger->addLog('Error', $e->getMessage());
|
||||
$productLogger->setLogandSendEmail('Aggiornamento Prodotti');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user