dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df9fc5c
)
Made DB errors go to the exception log again
author
Aaron Schulz
<aschulz@wikimedia.org>
Mon, 28 Apr 2014 17:53:16 +0000
(10:53 -0700)
committer
Aaron 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
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseError.php
b/includes/db/DatabaseError.php
index
3bcf638
..
4d5c3dc
100644
(file)
--- 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
*/