Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -846,11 +846,9 @@ |
847 | 847 | $sqlx = substr( $commentedSql, 0, 500 ); |
848 | 848 | $sqlx = strtr( $sqlx, "\t\n", ' ' ); |
849 | 849 | |
850 | | - if ( $isMaster ) { |
851 | | - wfDebug( "Query $cnt (master): $sqlx\n" ); |
852 | | - } else { |
853 | | - wfDebug( "Query $cnt (slave): $sqlx\n" ); |
854 | | - } |
| 850 | + |
| 851 | + $master = $isMaster ? 'master' : 'slave'; |
| 852 | + wfDebug( "Query {$this->mDBname} ($cnt) ($master): $sqlx\n" ); |
855 | 853 | } |
856 | 854 | |
857 | 855 | if ( istainted( $sql ) & TC_MYSQL ) { |