Commit 2a57e214 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Exécution de script SQL : Amélioration des logs

parent f213253d
Pipeline #4819 passed with stage
in 27 seconds
......@@ -178,10 +178,12 @@ class RunSQLProcess
foreach ($this->queryStack->getQueries() as $query) {
$logger->info("Requête : " . $query['sql']);
if (isset($query['exception'])) {
$logger->info("Statut : SUCCÈS");
/** @var Exception $exception */
$exception = $query['exception'];
$logger->info($exception->getMessage());
$logger->info($exception->getTraceAsString());
} else {
$logger->info("Statut : ÉCHEC");
}
$logger->info("Temps d'exécution : " . $query['executionMS'] . " sec");
$logger->info("---------------------------------------------------------------------------------------");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment