Manual:$wgLogQueries

Details
Not used in MediaWiki core code. Set 'false' in DefaultSettings.php; used by Extension:Asksql to enable logging of enquiries.