I'm wondering why in the ErrorController.php file made by Zend_Tool we have 
this:


        // Log exception, if logger available
        if ($log = $this->getLog()) {
            $log->crit($this->view->message, $errors->exception);
        }

Does the Exception cast to a priority value? Wouldn't this or something similar 
depending on a verbosity switch make more sense:

        // Log exception, if logger available
        if ($log = $this->getLog()) {
            $log->crit($errors->exception);
        }

If an Exception doesn't cast to a log priority value, then the original code is 
incorrect.  Either way, it's using the crit() method which will 
override(discard?) the priority value, no?

Minor, but I'm sure full logs will help more than the generic message sent to 
the view.

If it's a bug, I'll report it.

Cheers,

Simon


--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to