Looks like this is not over yet. Silently log failures to a 'logging' debug log
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 28 Apr 2008 01:31:44 +0000 (01:31 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 28 Apr 2008 01:31:44 +0000 (01:31 +0000)
includes/LogPage.php

index 66cb348..a90b781 100644 (file)
@@ -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!