Limiting Exception trace line count in logs

Hopefully this is a simple one ;)

I’m trying to limit the number of lines going into the log file when an exception is thrown. Right now it mostly seems to work when set from index.php with -

defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3);

If my site gets an invalid URL causing a 404 I see the correct limit of 3 lines of trace.

If I throw and exception myself from an action in my controller with code such as -


		throw new CHttpException(400, '');

The log shows the trace of a much larger number of lines (not 3).

I have been poking around the source to see if I could find something that would explain it but I’m not sure where to look or how to set up the config file to make the trace on user thown exceptions behave the same.

It’s Yii I know you can do it, just can’t figure out where/what to set :unsure:



Any clue where to look to help with this?