From d5fa9486481e26f984fb092e30983a0018f4bce4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 3 Dec 2014 14:00:16 -0800 Subject: [PATCH] Removed low signal wfDebugLog call in DatabaseBase Change-Id: I231766b6a1a1651508bb03fa137e6b2b55c55e6a --- includes/db/Database.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index df04b6d98e..41b70c39eb 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1027,27 +1027,11 @@ abstract class DatabaseBase implements IDatabase { $lastError = $this->lastError(); $lastErrno = $this->lastErrno(); if ( $this->ping() ) { - global $wgRequestTime; - wfDebug( "Reconnected\n" ); $server = $this->getServer(); $msg = __METHOD__ . ": lost connection to $server; reconnected"; wfDebugLog( 'DBPerformance', "$msg:\n" . wfBacktrace( true ) ); - $sqlx = $wgDebugDumpSqlLength ? substr( $commentedSql, 0, $wgDebugDumpSqlLength ) - : $commentedSql; - $sqlx = strtr( $sqlx, "\t\n", ' ' ); - $elapsed = round( microtime( true ) - $wgRequestTime, 3 ); - if ( $elapsed < 300 ) { - # Not a database error to lose a transaction after a minute or two - wfLogDBError( - "Connection lost and reconnected after {$elapsed}s, query: $sqlx", - $this->getLogContext( array( - 'method' => __METHOD__, - 'query' => $sqlx, - ) ) - ); - } if ( $hadTrx ) { # Leave $ret as false and let an error be reported. # Callers may catch the exception and continue to use the DB. -- 2.20.1