Made DB errors go to the exception log again
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 28 Apr 2014 17:53:16 +0000 (10:53 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 28 Apr 2014 17:53:16 +0000 (10:53 -0700)
* 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

includes/db/DatabaseError.php

index 3bcf638..4d5c3dc 100644 (file)
@@ -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
         */