aggiornamento log
This commit is contained in:
@@ -51,7 +51,7 @@ class ProductUpdateGm extends Command
|
||||
set_time_limit(0);
|
||||
ini_set("memory_limit", "512M");
|
||||
$settingora = Setting::where('key', 'update_products')->first();
|
||||
$productLogger = new ProductLogger($settingora);
|
||||
$productLogger = new ProductLogger($settingora, 'updateproducts');
|
||||
echo "SettingOra: " . $settingora;
|
||||
$fromtime = str_replace('-', '', $settingora->value);
|
||||
|
||||
@@ -90,7 +90,7 @@ class ProductUpdateGm extends Command
|
||||
setProductFromGM($article, true, $productLogger);
|
||||
}
|
||||
|
||||
$productLogger->setLogandSendEmail();
|
||||
$productLogger->setLogandSendEmail('Aggiornamento Prodotti');
|
||||
|
||||
echo "************** Finito **************";
|
||||
|
||||
@@ -99,7 +99,7 @@ class ProductUpdateGm extends Command
|
||||
|
||||
if ($productLogger) {
|
||||
$productLogger->addLog('Error', $e->getMessage());
|
||||
$productLogger->setLogandSendEmail();
|
||||
$productLogger->setLogandSendEmail('Aggiornamento Prodotti');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user