So that it is possible to distinguish master queries from replica
queries. Useful when debugging issues such as T221763.
Change-Id: I38896efa46f2c7cf289e5bdc543a1692e251ec1d
// Avoid the overhead of logging calls unless debug mode is enabled
if ( $this->getFlag( self::DBO_DEBUG ) ) {
$this->queryLogger->debug(
// Avoid the overhead of logging calls unless debug mode is enabled
if ( $this->getFlag( self::DBO_DEBUG ) ) {
$this->queryLogger->debug(
- "{method} [{runtime}s]: $sql",
+ "{method} [{runtime}s] {db_host}: $sql",
[
'method' => $fname,
'db_host' => $this->getServer(),
[
'method' => $fname,
'db_host' => $this->getServer(),