]> git.mxchange.org Git - friendica.git/commitdiff
Rename system config value to db_log_index_denylist
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 6 Jun 2020 20:44:07 +0000 (16:44 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 7 Jun 2020 15:24:56 +0000 (11:24 -0400)
src/Database/Database.php
static/defaults.config.php

index 05ce3693b4973fe67ed517c9737040361f341c18..57c671895caa0397733c11a10251dc2d7ce2807a 100644 (file)
@@ -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;
                        }
 
index a1d50bb84f53d1299c87a0a13d1b93d365e2068e..8111a68f1aadb4c75d54f03debf3e14fbf6d9908 100644 (file)
@@ -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.