X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Floadmonitor%2FLoadMonitor.php;h=4300e9f1cd614601595c2d50d71584ecd15a8598;hb=d5a7166771613dfe4ed9fb75fa5efeced6134bd1;hp=d120b6f3d23bdbdbc19b929d11ff0bb93d6c73b7;hpb=132c1ad73ffda918bbd1e011487765b80ddd2c9c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/loadmonitor/LoadMonitor.php b/includes/libs/rdbms/loadmonitor/LoadMonitor.php index d120b6f3d2..4300e9f1cd 100644 --- a/includes/libs/rdbms/loadmonitor/LoadMonitor.php +++ b/includes/libs/rdbms/loadmonitor/LoadMonitor.php @@ -161,7 +161,10 @@ class LoadMonitor implements ILoadMonitor { if ( !$conn ) { $lagTimes[$i] = false; $host = $this->parent->getServerName( $i ); - $this->replLogger->error( __METHOD__ . ": host $host is unreachable" ); + $this->replLogger->error( + __METHOD__ . ": host {db_server} is unreachable", + [ 'db_server' => $host ] + ); continue; } @@ -171,7 +174,10 @@ class LoadMonitor implements ILoadMonitor { $lagTimes[$i] = $conn->getLag(); if ( $lagTimes[$i] === false ) { $host = $this->parent->getServerName( $i ); - $this->replLogger->error( __METHOD__ . ": host $host is not replicating?" ); + $this->replLogger->error( + __METHOD__ . ": host {db_server} is not replicating?", + [ 'db_server' => $host ] + ); } }