daemon debugging stuff

This commit is contained in:
Andrew Dolgov 2007-03-17 07:37:40 +01:00
parent dd966fed31
commit 7ca91eb38b
1 changed files with 17 additions and 2 deletions

View File

@ -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;
}
@ -730,6 +737,10 @@
// 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