Error log cuotas
This commit is contained in:
@ -37,7 +37,11 @@ class Cuotas
|
|||||||
{
|
{
|
||||||
$output = [];
|
$output = [];
|
||||||
try {
|
try {
|
||||||
|
$benchmark = [
|
||||||
|
'start' => microtime(true)
|
||||||
|
];
|
||||||
$cuotas = $cuotaRepository->fetchDatosPorVencer();
|
$cuotas = $cuotaRepository->fetchDatosPorVencer();
|
||||||
|
$benchmark['cuotas'] = microtime(true) - $benchmark['start'];
|
||||||
foreach ($cuotas as $row) {
|
foreach ($cuotas as $row) {
|
||||||
$fecha = $row['Fecha'];
|
$fecha = $row['Fecha'];
|
||||||
$date = new DateTimeImmutable($fecha);
|
$date = new DateTimeImmutable($fecha);
|
||||||
@ -61,6 +65,8 @@ class Cuotas
|
|||||||
});
|
});
|
||||||
$output[$key] = $day;
|
$output[$key] = $day;
|
||||||
}
|
}
|
||||||
|
$benchmark['run'] = microtime(true) - $benchmark['start'];
|
||||||
|
error_log(var_export($benchmark,true));
|
||||||
} catch (EmptyResult) {}
|
} catch (EmptyResult) {}
|
||||||
return $this->withJson($response, ['cuotas' => $output]);
|
return $this->withJson($response, ['cuotas' => $output]);
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
display_errors=no
|
display_errors=no
|
||||||
log_errors=yes
|
log_errors=yes
|
||||||
error_log=/logs/php_errors.log
|
error_log=/logs/errors.log
|
||||||
|
Reference in New Issue
Block a user