Use error_log with exception to log getTraceAsString
This commit is contained in:
parent
1bdb15d4a2
commit
fde9e92da9
7 changed files with 14 additions and 8 deletions
|
|
@ -57,7 +57,8 @@ if (isset($_POST['change_profile']))
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getTraceAsString();
|
||||
echo $exc->getMessage();
|
||||
error_log( $exc->getTraceAsString());
|
||||
throw $exc;
|
||||
}
|
||||
}
|
||||
|
|
@ -95,7 +96,8 @@ if (isset($_POST['change_stock']))
|
|||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
echo $exc->getTraceAsString();
|
||||
echo $exc->getMessage();
|
||||
error_log($exc->getTraceAsString());
|
||||
throw $exc;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue