Remove load array indexes from LoadBalancer errors
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 19 Apr 2017 21:30:25 +0000 (14:30 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 19 Apr 2017 21:30:25 +0000 (14:30 -0700)
This are not very useful and where not using SPI interpolation either.

Change-Id: Ia3a33da3a4593fbcba59b21f5b5028860752ce09

includes/libs/rdbms/loadbalancer/LoadBalancer.php

index 1202831..e2fbf72 100644 (file)
@@ -269,11 +269,11 @@ class LoadBalancer implements ILoadBalancer {
                                $host = $this->getServerName( $i );
                                if ( $lag === false && !is_infinite( $maxServerLag ) ) {
                                        $this->replLogger->error(
-                                               "Server {host} (#$i) is not replicating?", [ 'host' => $host ] );
+                                               "Server {host} is not replicating?", [ 'host' => $host ] );
                                        unset( $loads[$i] );
                                } elseif ( $lag > $maxServerLag ) {
                                        $this->replLogger->warning(
-                                               "Server {host} (#$i) has {lag} seconds of lag (>= {maxlag})",
+                                               "Server {host} has {lag} seconds of lag (>= {maxlag})",
                                                [ 'host' => $host, 'lag' => $lag, 'maxlag' => $maxServerLag ]
                                        );
                                        unset( $loads[$i] );