public function errorAction() { $exp = $this->getRequest()->getException(); $code = $exp->getCode(); if ($code === YAF_ERR_NOTFOUND_CONTROLLER || $code === YAF_ERR_NOTFOUND_ACTION) { Core_Log::warning($exp->getMessage()); header('HTTP/1.1 403 Forbidden'); } else { Core_Log::fatal($exp->getMessage()); header('HTTP/1.1 500 Internal Server Error'); } }
public function __construct($msg, $argv = null) { parent::__construct($msg, $argv); Core_Log::warning($msg, $argv); }