Merge "Make DatabaseMysqlBase use connLogger for connection errors"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 6 Oct 2016 23:04:44 +0000 (23:04 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 6 Oct 2016 23:04:44 +0000 (23:04 +0000)
includes/libs/rdbms/database/DatabaseMysqlBase.php

index d654429..f504ec4 100644 (file)
@@ -129,14 +129,14 @@ abstract class DatabaseMysqlBase extends Database {
                        if ( !$error ) {
                                $error = $this->lastError();
                        }
-                       $this->queryLogger->error(
+                       $this->connLogger->error(
                                "Error connecting to {db_server}: {error}",
                                $this->getLogContext( [
                                        'method' => __METHOD__,
                                        'error' => $error,
                                ] )
                        );
-                       $this->queryLogger->debug( "DB connection error\n" .
+                       $this->connLogger->debug( "DB connection error\n" .
                                "Server: $server, User: $user, Password: " .
                                substr( $password, 0, 3 ) . "..., error: " . $error . "\n" );