From 530ff5189853c22348f7c79c22b92075145f4c25 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 6 Jun 2020 16:44:07 -0400 Subject: [PATCH] Rename system config value to db_log_index_denylist --- src/Database/Database.php | 4 ++-- static/defaults.config.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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.