From: Aaron Schulz Date: Mon, 28 Apr 2008 01:31:44 +0000 (+0000) Subject: Looks like this is not over yet. Silently log failures to a 'logging' debug log X-Git-Tag: 1.31.0-rc.0~48041 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=8580ccdb2ead7a5465cbb69b38c498b0af61d1b3;p=lhc%2Fweb%2Fwiklou.git Looks like this is not over yet. Silently log failures to a 'logging' debug log --- 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!