...
 
Commits (1)
......@@ -72,7 +72,7 @@ class UpdateController extends Controller
}
catch(\Exception $e)
{
\Yii::error($e->getMessage()."\n\n".$e->getTraceAsString(), static::class);
\Yii::error($e->getMessage()."\n\n".$e->getTraceAsString(), __CLASS__);
echo $e->getMessage();
}
}
......@@ -98,17 +98,17 @@ class UpdateController extends Controller
public function actionCategories()
{
$dt = new \DateTime();
\Yii::beginProfile(__METHOD__, 'DT');
\Yii::beginProfile(__METHOD__, __CLASS__);
try
{
$this->doCategories($this->catMinId, $this->catMaxId);
}
catch(\Exception $e)
{
\Yii::error($e->getMessage()."\n\n".$e->getTraceAsString());
\Yii::error($e->getMessage()."\n\n".$e->getTraceAsString(), __CLASS__);
$this->stderr($e->getMessage()."\n\n".$e->getTraceAsString());
}
\Yii::endProfile(__METHOD__, 'QT');
\Yii::endProfile(__METHOD__, __CLASS__);
$et = new \DateTime();
$diff = $et->diff($dt);
$this->stdout('Process Terminated in '.$diff->format('%a days, %h hours, %i minutes and %s seconds')."\n\n");
......@@ -157,17 +157,17 @@ class UpdateController extends Controller
ini_set('memory_limit', '512M');
$dt = new \DateTime();
\Yii::beginProfile(__METHOD__, 'DT');
\Yii::beginProfile(__METHOD__, __CLASS__);
try
{
$this->doCours($this->catMinId, $this->catMaxId, $this->onlyNewRecords);
}
catch(\Exception $e)
{
\Yii::error($e->getMessage()."\n\n".$e->getTraceAsString());
\Yii::error($e->getMessage()."\n\n".$e->getTraceAsString(), __CLASS__);
$this->stderr($e->getMessage()."\n\n".$e->getTraceAsString());
}
\Yii::endProfile(__METHOD__, 'QT');
\Yii::endProfile(__METHOD__, __CLASS__);
$et = new \DateTime();
$diff = $et->diff($dt);
$this->stdout('Process Terminated in '.$diff->format('%a days, %h hours, %i minutes and %s seconds')."\n\n");
......@@ -232,17 +232,17 @@ class UpdateController extends Controller
{
ini_set('memory_limit', '512M');
$dt = new \DateTime();
\Yii::beginProfile(__METHOD__, 'DT');
\Yii::beginProfile(__METHOD__, __CLASS__);
try
{
$this->doFiles($this->crsMinId, $this->crsMaxId, $this->onlyNewRecords);
}
catch(\Exception $e)
{
\Yii::error($e->getMessage()."\n\n".$e->getTraceAsString());
\Yii::error($e->getMessage()."\n\n".$e->getTraceAsString(), __CLASS__);
$this->stderr($e->getMessage()."\n\n".$e->getTraceAsString());
}
\Yii::endProfile(__METHOD__, 'QT');
\Yii::endProfile(__METHOD__, __CLASS__);
$et = new \DateTime();
$diff = $et->diff($dt);
$this->stdout('Process Terminated in '.$diff->format('%a days, %h hours, %i minutes and %s seconds')."\n\n");
......