FIX: Detalle en logging.
This commit is contained in:
@ -218,7 +218,7 @@ class Ventas extends Controller
|
|||||||
$output['venta_id'] = $venta->id;
|
$output['venta_id'] = $venta->id;
|
||||||
$output['status'] = true;
|
$output['status'] = true;
|
||||||
} catch (Create | Update $exception) {
|
} catch (Create | Update $exception) {
|
||||||
$this->logger->error($exception->getMessage());
|
$this->logger->error($exception);
|
||||||
$output['errors'] = [
|
$output['errors'] = [
|
||||||
'code' => $exception->getCode(),
|
'code' => $exception->getCode(),
|
||||||
'message' => $exception->getMessage(),
|
'message' => $exception->getMessage(),
|
||||||
|
@ -280,7 +280,7 @@ class Cartola extends Service
|
|||||||
try {
|
try {
|
||||||
return $this->movimientoRepository->save($movimiento);
|
return $this->movimientoRepository->save($movimiento);
|
||||||
} catch (PDOException $exception) {
|
} catch (PDOException $exception) {
|
||||||
$this->logger->critical(var_export($data,true));
|
$this->logger->critical($exception, ['data' => $data]);
|
||||||
throw $exception;
|
throw $exception;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user