From: Aaron Schulz Date: Mon, 28 Apr 2014 17:53:16 +0000 (-0700) Subject: Made DB errors go to the exception log again X-Git-Tag: 1.31.0-rc.0~15953^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=8c6fca60f2b1fa6fa3408e92a22da0f1be536f49;p=lhc%2Fweb%2Fwiklou.git Made DB errors go to the exception log again * Some DB errors are caught while others bubble up to users. It is useful to log the latter separately and it also provides more context. The exception logs have a backtrace where as the regular DB logs do not. Change-Id: I7ef7693d96e0258119f714e678099e4813ca0c94 --- diff --git a/includes/db/DatabaseError.php b/includes/db/DatabaseError.php index 3bcf638e8b..4d5c3dc5e1 100644 --- a/includes/db/DatabaseError.php +++ b/includes/db/DatabaseError.php @@ -347,14 +347,6 @@ class DBQueryError extends DBExpectedError { $this->fname = $fname; } - /** - * @return bool - */ - function isLoggable() { - // Don't send to the exception log, already in dberror log - return false; - } - /** * @return string */