rdbms: Restore debug toolbar "Queries" feature
[lhc/web/wiklou.git] / includes / libs / rdbms / database / Database.php
index 51596da..5f59f34 100644 (file)
@@ -1334,10 +1334,11 @@ 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] {db_host}: $sql",
+                               "{method} [{runtime}s] {db_host}: {sql}",
                                [
                                        'method' => $fname,
                                        'db_host' => $this->getServer(),
+                                       'sql' => $sql,
                                        'domain' => $this->getDomainID(),
                                        'runtime' => round( $queryRuntime, 3 )
                                ]