|
|
@@ -143,21 +143,22 @@ switch (\$errors->type) {
|
|
|
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
|
|
|
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
|
|
|
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
|
|
|
-
|
|
|
// 404 error -- controller or action not found
|
|
|
\$this->getResponse()->setHttpResponseCode(404);
|
|
|
+ \$priority = Zend_Log::NOTICE;
|
|
|
\$this->view->message = 'Page not found';
|
|
|
break;
|
|
|
default:
|
|
|
// application error
|
|
|
\$this->getResponse()->setHttpResponseCode(500);
|
|
|
+ \$priority = Zend_Log::CRIT;
|
|
|
\$this->view->message = 'Application error';
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
// Log exception, if logger available
|
|
|
if (\$log = \$this->getLog()) {
|
|
|
- \$log->crit(\$this->view->message, \$errors->exception);
|
|
|
+ \$log->log(\$this->view->message, \$priority, \$errors->exception);
|
|
|
}
|
|
|
|
|
|
// conditionally display exceptions
|