diff options
author | Andrew Dolgov <[email protected]> | 2007-03-14 15:50:28 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-14 15:50:28 +0100 |
commit | 219bd8fcfcd91922aedba01a676dbd4068fbc803 (patch) | |
tree | cc1ffacb9c1028fb2f4cb71299de9bb75a69b86b /functions.php | |
parent | 76e8393b0aff5d4ba55cc2b50668d13e734bd88f (diff) |
bump up debugging in daemon
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/functions.php b/functions.php index db21caba0..5bcbfc1d7 100644 --- a/functions.php +++ b/functions.php @@ -362,6 +362,10 @@ return; } + if (defined('DAEMON_EXTENDED_DEBUG')) { + print "update_rss_feed: start\n"; + } + $result = db_query($link, "SELECT update_interval,auth_login,auth_pass FROM ttrss_feeds WHERE id = '$feed'"); @@ -386,10 +390,22 @@ } - error_reporting(0); + if (defined('DAEMON_EXTENDED_DEBUG')) { + print "update_rss_feed: fetching...\n"; + } + + if (!defined('DAEMON_EXTENDED_DEBUG')) { + error_reporting(0); + } + $rss = fetch_rss($fetch_url); - error_reporting (DEFAULT_ERROR_LEVEL); - + + if (defined('DAEMON_EXTENDED_DEBUG')) { + print "update_rss_feed: fetch done, parsing...\n"; + } else { + error_reporting (DEFAULT_ERROR_LEVEL); + } + $feed = db_escape_string($feed); if ($rss) { @@ -840,6 +856,10 @@ last_updated = NOW() WHERE id = '$feed'"); } + if (defined('DAEMON_EXTENDED_DEBUG')) { + print "update_rss_feed: done\n"; + } + } function print_select($id, $default, $values, $attributes = "") { |