]> git.wh0rd.org Git - tt-rss.git/commitdiff
add some more update_rss_feed debugging
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Mar 2007 04:53:42 +0000 (05:53 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Mar 2007 04:53:42 +0000 (05:53 +0100)
functions.php

index ae663bb8a21aee675b72e8b26f260b7c9ae7ff17..339a4ab4083aed103e945cf31923059af0fc7672 100644 (file)
                $feed = db_escape_string($feed);
 
                if ($rss) {
-                       
+
+                       if (defined('DAEMON_EXTENDED_DEBUG')) {
+                               _debug("update_rss_feed: processing feed data...");
+                       }
+
 //                     db_query($link, "BEGIN");
 
                        $result = db_query($link, "SELECT title,icon_url,site_url,owner_uid
                        $owner_uid = db_fetch_result($result, 0, "owner_uid");
 
                        if (get_pref($link, 'ENABLE_FEED_ICONS', $owner_uid, false)) {  
+                               if (defined('DAEMON_EXTENDED_DEBUG')) {
+                                       _debug("update_rss_feed: checking favicon...");
+                               }
                                check_feed_favicon($rss->channel["link"], $feed, $link);
                        }
 
                                db_query($link, "UPDATE ttrss_feeds SET icon_url = '$icon_url' WHERE id = '$feed'");
                        }
 
+                       if (defined('DAEMON_EXTENDED_DEBUG')) {
+                               _debug("update_rss_feed: loading filters...");
+                       }
 
                        $filters = array();
 
                                return; // WTF?
                        }
 
+                       if (defined('DAEMON_EXTENDED_DEBUG')) {
+                               _debug("update_rss_feed: processing articles...");
+                       }
+
                        foreach ($iterator as $item) {
 
                                $entry_guid = $item["id"];