Followup a88df43d: make $wgDebugDumpSql log commented queries again
authorRoan Kattouw <roan.kattouw@gmail.com>
Thu, 12 Nov 2015 02:17:23 +0000 (18:17 -0800)
committerRoan Kattouw <roan.kattouw@gmail.com>
Thu, 12 Nov 2015 02:17:23 +0000 (18:17 -0800)
Change-Id: I0c10b2119f03fa047dbb2bad1c4c1233403bff59

includes/db/Database.php

index 60cf0ec..968a0fd 100644 (file)
@@ -989,7 +989,7 @@ abstract class DatabaseBase implements IDatabase {
                }
 
                if ( $this->debug() ) {
-                       wfDebugLog( 'queries', sprintf( "%s: %s", $this->mDBname, $sql ) );
+                       wfDebugLog( 'queries', sprintf( "%s: %s", $this->mDBname, $commentedSql ) );
                }
 
                $queryId = MWDebug::query( $sql, $fname, $isMaster );