ServerErrorAction always logs
这个提交包含在:
父节点
aa9fcb9184
当前提交
a0f6b4f078
@ -52,6 +52,7 @@ require_once INSTALLDIR.'/lib/error.php';
|
||||
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
|
||||
* @link http://laconi.ca/
|
||||
*/
|
||||
|
||||
class ServerErrorAction extends ErrorAction
|
||||
{
|
||||
function __construct($message='Error', $code=500)
|
||||
@ -66,6 +67,10 @@ class ServerErrorAction extends ErrorAction
|
||||
505 => 'HTTP Version Not Supported');
|
||||
|
||||
$this->default = 500;
|
||||
|
||||
// Server errors must be logged.
|
||||
|
||||
common_log(LOG_ERR, "ServerErrorAction: $code $message");
|
||||
}
|
||||
|
||||
// XXX: Should these error actions even be invokable via URI?
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户