From 8580ccdb2ead7a5465cbb69b38c498b0af61d1b3 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 28 Apr 2008 01:31:44 +0000 Subject: [PATCH] Looks like this is not over yet. Silently log failures to a 'logging' debug log --- includes/LogPage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/LogPage.php b/includes/LogPage.php index 66cb348350..a90b781eb8 100644 --- 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! -- 2.20.1