]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ServerErrorAction always logs
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 12 Aug 2009 18:16:31 +0000 (11:16 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 12 Aug 2009 18:16:57 +0000 (11:16 -0700)
lib/servererroraction.php

index db735216685848daf9b436b8104a47c06e811dfe..c46f3228b0706044001d98f001c684a92471d0fb 100644 (file)
@@ -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?