summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/Config.php4
-rw-r--r--classes/RSSUtils.php4
2 files changed, 6 insertions, 2 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 ],
diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php
index 68cbfd26a..7a50626fd 100644
--- a/classes/RSSUtils.php
+++ b/classes/RSSUtils.php
@@ -148,7 +148,7 @@ class RSSUtils {
$updstart_thresh_qpart
$query_order $query_limit";
- //print "$query\n";
+ Debug::log("base feed query: $query", Debug::LOG_EXTENDED);
$res = $pdo->query($query);
@@ -189,7 +189,7 @@ class RSSUtils {
$update_limit_qpart
ORDER BY f.id $query_limit";
- //print "$user_query\n";
+ Debug::log("per-user feed query: $user_query", Debug::LOG_EXTENDED);
// since we have feed xml cached, we can deal with other feeds with the same url
$usth = $pdo->prepare($user_query);