From: Hypolite Petovan Date: Sat, 6 Jun 2020 20:44:07 +0000 (-0400) Subject: Rename system config value to db_log_index_denylist X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=530ff5189853c22348f7c79c22b92075145f4c25;p=friendica.git Rename system config value to db_log_index_denylist --- diff --git a/src/Database/Database.php b/src/Database/Database.php index 05ce3693b4..57c671895c 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -319,7 +319,7 @@ class Database } $watchlist = explode(',', $this->configCache->get('system', 'db_log_index_watch')); - $blacklist = explode(',', $this->configCache->get('system', 'db_log_index_blacklist')); + $denylist = explode(',', $this->configCache->get('system', 'db_log_index_denylist')); while ($row = $this->fetch($r)) { if ((intval($this->configCache->get('system', 'db_loglimit_index')) > 0)) { @@ -333,7 +333,7 @@ class Database $log = true; } - if (in_array($row['key'], $blacklist) || ($row['key'] == "")) { + if (in_array($row['key'], $denylist) || ($row['key'] == "")) { $log = false; } diff --git a/static/defaults.config.php b/static/defaults.config.php index a1d50bb84f..8111a68f1a 100644 --- a/static/defaults.config.php +++ b/static/defaults.config.php @@ -143,9 +143,9 @@ return [ // Watchlist of indexes to watch. 'db_log_index_watch' => '', - // db_log_index_blacklist (Comma-separated list) - // Blacklist of indexes that shouldn't be watched. - 'db_log_index_blacklist' => '', + // db_log_index_denylist (Comma-separated list) + // Deny list of indexes that shouldn't be watched. + 'db_log_index_denylist' => '', // db_loglimit (Integer) // If a database call lasts longer than this value in seconds it is logged.