From: Michael Hampton Date: Fri, 19 Aug 2005 01:58:06 +0000 (+0000) Subject: RSS: Update debugging messages X-Git-Tag: v7.86~4709 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=ba0261d0f2df4fed09fd9de3cb17249eafab657f RSS: Update debugging messages --- diff --git a/webcit/fmt_date.c b/webcit/fmt_date.c index 4481063f8..da9c1d160 100644 --- a/webcit/fmt_date.c +++ b/webcit/fmt_date.c @@ -158,7 +158,6 @@ time_t httpdate_to_timestamp(const char *buf) char *c; char tz[256]; -lprintf(3, "Datestamp: %s\n", buf); /* Skip day of week, to number */ for (c = buf; *c != ' '; c++) ; diff --git a/webcit/rss.c b/webcit/rss.c index 0d131873c..253e201eb 100644 --- a/webcit/rss.c +++ b/webcit/rss.c @@ -43,19 +43,21 @@ void display_rss(const char *roomname) } if (gotoroom(roomname)) { + lprintf(3, "RSS: Can't goto requested room\n"); wprintf("HTTP/1.0 404 Not Found\r\n"); wprintf("Content-Type: text/html\r\n"); wprintf("\r\n"); - wprintf("Error retrieving RSS feed: couldn't find room or messages\n"); + wprintf("Error retrieving RSS feed: couldn't find room\n"); return; } nummsgs = load_msg_ptrs("MSGS LAST|15", 0); if (nummsgs == 0) { + lprintf(3, "RSS: No messages found\n"); wprintf("HTTP/1.0 404 Not Found\r\n"); wprintf("Content-Type: text/html\r\n"); wprintf("\r\n"); - wprintf("Error retrieving RSS feed: couldn't find room or messages\n"); + wprintf("Error retrieving RSS feed: couldn't find messages\n"); return; } @@ -75,8 +77,8 @@ void display_rss(const char *roomname) } } - lprintf(3, "If modified since %ld Last modified %ld\n", if_modified_since, now); if (if_modified_since > 0 && if_modified_since > now) { + lprintf(3, "RSS: Feed not updated since the last time you looked\n"); wprintf("HTTP/1.0 304 Not Modified\r\n"); wprintf("Last-Modified: %s\r\n", date); now = time(NULL); @@ -89,6 +91,7 @@ void display_rss(const char *roomname) } /* Do RSS header */ + lprintf(3, "RSS: Yum yum! This feed is tasty!\n"); wprintf("HTTP/1.0 200 OK\r\n"); wprintf("Last-Modified: %s\r\n", date); /* if (*msgn) wprintf("ETag: %s\r\n\r\n", msgn); */