1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 17:25:57 +00:00

report runtime info in counter callbacks

This commit is contained in:
Andrew Dolgov
2006-05-23 09:59:00 +01:00
parent a756529344
commit f54f515f44
4 changed files with 41 additions and 3 deletions

View File

@@ -470,6 +470,11 @@ function parse_counters(reply, scheduled_call) {
var f_document = getFeedsContext().document;
var title_obj = getMainContext();
if (reply.firstChild && reply.firstChild.firstChild) {
debug("<b>wrong element passed to parse_counters, adjusting.</b>");
reply = reply.firstChild;
}
debug("F_DOC: " + f_document + ", T_OBJ: " + title_obj);
for (var l = 0; l < reply.childNodes.length; l++) {
@@ -565,7 +570,9 @@ function all_counters_callback() {
var reply = xmlhttp_rpc.responseXML.firstChild;
parse_counters(reply);
var counters = reply.firstChild;
parse_counters(counters);
} catch (e) {
exception_error("all_counters_callback", e);