commit 1d237163c661fed923dfeaa4811149b8b862a96d
parent 6bd876dedfea02ec4c74d019b27d04fb37414df4
Author: Jan Dankert <devnull@localhost>
Date: Mon, 6 Nov 2017 22:31:24 +0100
Serverfehler auch als Warnung ins Log schreiben.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/util/Http.class.php b/util/Http.class.php
@@ -428,6 +428,7 @@ class Http
if ( is_object( $db ) )
$db->rollback();
+ Logger::warn($message."\n".$reason);
Http::sendStatus(501,'Internal Server Error',$message,$reason);
}
@@ -444,6 +445,7 @@ class Http
*/
public static function notAuthorized($message='')
{
+ Logger::warn("Security warning: $message");
Http::sendStatus(403,'Not authorized',$message);
}