Skip to content
Snippets Groups Projects
Commit a791c855 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FEAT #5573 add logs on sql error

parent d9881432
No related branches found
No related tags found
No related merge requests found
......@@ -349,6 +349,9 @@ class Database extends functions
$_SESSION['error'] .= $PDOException->getTraceAsString();
//echo $queryString;
//var_export($parameters);
$file = fopen('queries_error.log', a);
fwrite($file, '[' . date('Y-m-d H:i:s') . '] ' . $queryString . PHP_EOL);
fclose($file);
}
throw $PDOException;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment