diff options
author | Andrew Dolgov <[email protected]> | 2007-03-17 07:37:40 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-17 07:37:40 +0100 |
commit | 7ca91eb38be520659baa2dbd1d9e17c4494c519e (patch) | |
tree | dc6579e8df197d0b4111df253d08c18d0389f571 | |
parent | dd966fed31771d94783d2d738ea4294efb21efc6 (diff) |
daemon debugging stuff
-rw-r--r-- | functions.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 1501a8713..fb38f6b3b 100644 --- a/functions.php +++ b/functions.php @@ -690,7 +690,7 @@ if (db_num_rows($result) == 1) { if (defined('DAEMON_EXTENDED_DEBUG')) { - _debug("update_rss_feed: base guid found, creating user ref"); + _debug("update_rss_feed: base guid found, checking for user record"); } // this will be used below in update handler @@ -716,6 +716,13 @@ $article_filters = get_article_filters($filters, $entry_title, $entry_content, $entry_link); + if (defined('DAEMON_EXTENDED_DEBUG')) { + _debug("update_rss_feed: article filters: "); + if (count($article_filters) != 0) { + print_r($article_filters); + } + } + if (find_article_filter($article_filters, "filter")) { continue; } @@ -726,10 +733,14 @@ "SELECT ref_id FROM ttrss_user_entries WHERE ref_id = '$ref_id' AND owner_uid = '$owner_uid' $dupcheck_qpart"); - + // okay it doesn't exist - create user entry if (db_num_rows($result) == 0) { + if (defined('DAEMON_EXTENDED_DEBUG')) { + _debug("update_rss_feed: user record not found, creating..."); + } + if (!find_article_filter($article_filters, 'catchup')) { $unread = 'true'; $last_read_qpart = 'NULL'; @@ -776,6 +787,10 @@ // linking to this post as updated if ($post_needs_update) { + if (defined('DAEMON_EXTENDED_DEBUG')) { + _debug("update_rss_feed: post $entry_guid needs update..."); + } + // print "<!-- post $orig_title needs update : $post_needs_update -->"; db_query($link, "UPDATE ttrss_entries |