aboutsummaryrefslogtreecommitdiff
path: root/classes/Config.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-06-18 21:47:05 +0300
committerAndrew Dolgov <fox@fakecake.org>2024-06-18 21:47:05 +0300
commitdb3e67b3fe94f3752b6ff5af61703d1b60b5fcb5 (patch)
treea38fd0bf1b22acb29ca107dabe7642e6b2b51fd2 /classes/Config.php
parentd7a6f74ae5fe71c4015b20996d5fa4e38872908c (diff)
* pass arbitrary CLI arguments to update daemon via updater.sh entrypoint
* add configurable log level for update daemon (DAEMON_LOG_LEVEL) * when daemon log level is set to LOG_EXTENDED (2) log queries for feed update selection
Diffstat (limited to 'classes/Config.php')
-rw-r--r--classes/Config.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/Config.php b/classes/Config.php
index e6e19ba09..dff991463 100644
--- a/classes/Config.php
+++ b/classes/Config.php
@@ -121,6 +121,9 @@ class Config {
/** max concurrent update jobs forking update daemon starts */
const DAEMON_MAX_JOBS = "DAEMON_MAX_JOBS";
+ /** log level for update daemon */
+ const DAEMON_LOG_LEVEL = "DAEMON_LOG_LEVEL";
+
/** How long to wait for response when requesting feed from a site (seconds) */
const FEED_FETCH_TIMEOUT = "FEED_FETCH_TIMEOUT";
@@ -229,6 +232,7 @@ class Config {
Config::T_STRING ],
Config::DAEMON_MAX_CHILD_RUNTIME => [ 1800, Config::T_INT ],
Config::DAEMON_MAX_JOBS => [ 2, Config::T_INT ],
+ Config::DAEMON_LOG_LEVEL => [ Debug::LOG_NORMAL, Config::T_INT ],
Config::FEED_FETCH_TIMEOUT => [ 45, Config::T_INT ],
Config::FEED_FETCH_NO_CACHE_TIMEOUT => [ 15, Config::T_INT ],
Config::FILE_FETCH_TIMEOUT => [ 45, Config::T_INT ],