Merge "rdbms: In the query log, show the server name in the message"
[lhc/web/wiklou.git] / includes / libs / rdbms / database / Database.php
index 8b65397..e82c735 100644 (file)
@@ -1337,7 +1337,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware
                // 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(),