mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
export: add logger to make feedback on deployed instances easier to debug
This commit is contained in:
parent
052c0e1969
commit
42c395ecc9
@ -442,6 +442,12 @@ class ExportController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$rawData = unserialize($serialized);
|
$rawData = unserialize($serialized);
|
||||||
|
|
||||||
|
$this->logger->notice('[export] choices for an export unserialized', [
|
||||||
|
'key' => $key,
|
||||||
|
'rawData' => json_encode($rawData)
|
||||||
|
]);
|
||||||
|
|
||||||
$alias = $rawData['alias'];
|
$alias = $rawData['alias'];
|
||||||
|
|
||||||
$formCenters = $this->createCreateFormExport($alias, 'generate_centers');
|
$formCenters = $this->createCreateFormExport($alias, 'generate_centers');
|
||||||
|
@ -264,15 +264,17 @@ class ExportManager
|
|||||||
//handle aggregators
|
//handle aggregators
|
||||||
$this->handleAggregators($export, $query, $data[ExportType::AGGREGATOR_KEY], $centers);
|
$this->handleAggregators($export, $query, $data[ExportType::AGGREGATOR_KEY], $centers);
|
||||||
|
|
||||||
$this->logger->debug('current query is ' . $query->getDQL(), [
|
$this->logger->notice('[export] will execute this qb in export', [
|
||||||
'class' => self::class, 'function' => __FUNCTION__,
|
'dql' => $query->getDQL()
|
||||||
]);
|
]);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
throw new UnexpectedValueException('The method `intiateQuery` should return '
|
throw new UnexpectedValueException('The method `intiateQuery` should return '
|
||||||
. 'a `\\Doctrine\\ORM\\NativeQuery` or a `Doctrine\\ORM\\QueryBuilder` '
|
. 'a `\\Doctrine\\ORM\\NativeQuery` or a `Doctrine\\ORM\\QueryBuilder` '
|
||||||
. 'object.');
|
. 'object.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$result = $export->getResult($query, $data[ExportType::EXPORT_KEY]);
|
$result = $export->getResult($query, $data[ExportType::EXPORT_KEY]);
|
||||||
|
|
||||||
if (!is_iterable($result)) {
|
if (!is_iterable($result)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user