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