summaryrefslogtreecommitdiff
path: root/lib/servererroraction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-12 11:16:31 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-08-12 11:16:31 -0700
commit347f74d650384dee616d2e9acb4ab19275892511 (patch)
treecfdcacbdbf3e1efbdd6a7e2a32d32721c1304b8e /lib/servererroraction.php
parent7d33478e867cc6610aded42a8f2fa71bae46804d (diff)
ServerErrorAction always logs
Diffstat (limited to 'lib/servererroraction.php')
-rw-r--r--lib/servererroraction.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/servererroraction.php b/lib/servererroraction.php
index db7352166..c46f3228b 100644
--- a/lib/servererroraction.php
+++ b/lib/servererroraction.php
@@ -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?