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:
b52a75d
)
Looks like this is not over yet. Silently log failures to a 'logging' debug log
author
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 28 Apr 2008 01:31:44 +0000
(
01:31
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 28 Apr 2008 01:31:44 +0000
(
01:31
+0000)
includes/LogPage.php
patch
|
blob
|
history
diff --git
a/includes/LogPage.php
b/includes/LogPage.php
index
66cb348
..
a90b781
100644
(file)
--- a/
includes/LogPage.php
+++ b/
includes/LogPage.php
@@
-73,6
+73,9
@@
class LogPage {
$dbw->insert( 'logging', $data, $fname );
$newId = $dbw->insertId();
+ if( !($dbw->affectedRows() > 0) ) {
+ wfDebugLog( "logging", "LogPage::saveContent failed to insert row - Error {$dbw->lastErrno()}: {$dbw->lastError()}" );
+ }
# And update recentchanges
if( $this->updateRecentChanges ) {
# Don't add private logs to RC!