forked from science-ation/science-ation
Move error logs to error_log console
This commit is contained in:
parent
4a19fefe79
commit
8c815d8dc0
@ -44,7 +44,7 @@ function show_pdo_errors_if_any($pdo)
|
||||
$errorInfo = $pdo->errorInfo();
|
||||
if ($errorInfo[0] != '00000') {
|
||||
// If there's an error (the SQLSTATE isn't '00000', which means no error)
|
||||
echo 'Error: ' . $errorInfo[2]; // The third element contains the error message
|
||||
error_log('Error: ' . $errorInfo[2]); // The third element contains the error message
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user