X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Frssclient%2Fserv_rssclient.c;fp=citadel%2Fmodules%2Frssclient%2Fserv_rssclient.c;h=bbf3c0c78431c2693773fef2f620453ce76d328b;hp=6d4392393610785433efc3caad7f91067519afa5;hb=00a46dcdfd9920d3966274aebc4e50b4c88eb549;hpb=94ef7564c4585129c6025debe797c8dade2e6885 diff --git a/citadel/modules/rssclient/serv_rssclient.c b/citadel/modules/rssclient/serv_rssclient.c index 6d4392393..bbf3c0c78 100644 --- a/citadel/modules/rssclient/serv_rssclient.c +++ b/citadel/modules/rssclient/serv_rssclient.c @@ -5,17 +5,11 @@ * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. - * - * * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the * GNU General Public License for more details. - * - * - * - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307USA */ #include @@ -508,6 +502,11 @@ void rssclient_scan(void) { /* Run no more than once every 15 minutes. */ if ((now - last_run) < 900) { + syslog(LOG_DEBUG, + "rssclient: polling interval not yet reached; last run was %ldm%lds ago", + ((now - last_run) / 60), + ((now - last_run) % 60) + ); return; } @@ -518,8 +517,14 @@ void rssclient_scan(void) { * with a static variable instead. */ - if ((GetCount(RSSQueueRooms) > 0) || (GetCount(RSSFetchUrls) > 0)) + if ((GetCount(RSSQueueRooms) > 0) || (GetCount(RSSFetchUrls) > 0)) { + syslog(LOG_DEBUG, + "rssclient: concurrency check failed; %d rooms and %d url's are queued", + GetCount(RSSQueueRooms), + GetCount(RSSFetchUrls) + ); return; + } become_session(&rss_CC); syslog(LOG_DEBUG, "rssclient started\n");