Steps to reproduce
When an exception is raised in the code, for example:
throw new Exception('bad data');
then in the symfony log (myapp_prod.log), it only shows:
Jan 14 12:07:52 symfony [err] {sfException}
without the exception description (in this case 'bad data').
The fix
If I change /symfony/controller/sfFrontWebController.class.php line 69,
from (original line):
$sfException = new sfException();
to (proposed line):
$sfException = new sfException($e->getMessage().' in '.$e->getFile().' line '.$e->getLine());
then the log file will show error description along with filename and line number.
Jan 14 12:07:52 symfony [err] {sfException} bad data in test.php line 10
Attached is the modified version of the file.
Thanks