Use error_log with exception to log getTraceAsString

This commit is contained in:
Dany De Bontridder 2015-09-15 11:27:23 +02:00
parent 1bdb15d4a2
commit fde9e92da9
7 changed files with 14 additions and 8 deletions

View file

@ -182,7 +182,8 @@ if ( isset($_POST['ok']))
} // end try
catch (Exception $e)
{
echo_warning ($e->getTraceAsString());
echo_warning ($e->getMessage());
error_log($e->getTraceAsString());
$cn->rollback();
}