From dad3040e871cd644fe65680c27f7bd81324bb1cf Mon Sep 17 00:00:00 2001 From: Mike Grant Date: Tue, 10 Mar 2015 09:21:22 +0000 Subject: [PATCH] MDL-49276 config-dist: Removed legacy config options Both $CFG->logsql and $CFG->dblogerror had no use in moodle core since ages ago (just the former had one use for nothing). Good time to get rid of both as they are 100% misleading. --- config-dist.php | 11 +---------- lib/setup.php | 5 ----- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/config-dist.php b/config-dist.php index 36d04cf11db..0a8fc37a55f 100644 --- a/config-dist.php +++ b/config-dist.php @@ -341,15 +341,6 @@ $CFG->admin = 'admin'; // $CFG->forcefirstname = 'Bruce'; // $CFG->forcelastname = 'Simpson'; // -// The following setting will turn SQL Error logging on. This will output an -// entry in apache error log indicating the position of the error and the statement -// called. This option will action disregarding error_reporting setting. -// $CFG->dblogerror = true; -// -// The following setting will log every database query to a table called adodb_logsql. -// Use this setting on a development server only, the table grows quickly! -// $CFG->logsql = true; -// // The following setting will turn on username logging into Apache log. For full details regarding setting // up of this function please refer to the install section of the document. // $CFG->apacheloguser = 0; // Turn this feature off. Default value. @@ -689,7 +680,7 @@ $CFG->admin = 'admin'; // (the basic and behat_* ones) to avoid problems with production environments. This setting can be // used to expand the default white list with an array of extra settings. // Example: -// $CFG->behat_extraallowedsettings = array('logsql', 'dblogerror'); +// $CFG->behat_extraallowedsettings = array('somecoresetting', ...); // // You should explicitly allow the usage of the deprecated behat steps, otherwise an exception will // be thrown when using them. The setting is disabled by default. diff --git a/lib/setup.php b/lib/setup.php index e17fe695d72..74b7d3d4d0e 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -678,11 +678,6 @@ if (!defined('NO_UPGRADE_CHECK') and isset($CFG->upgraderunning)) { } } -// Turn on SQL logging if required -if (!empty($CFG->logsql)) { - $DB->set_logging(true); -} - // enable circular reference collector in PHP 5.3, // it helps a lot when using large complex OOP structures such as in amos or gradebook if (function_exists('gc_enable')) {