Mercurial > noffle
comparison src/noffle.c @ 306:52ce87d25641 noffle
[svn] added logging when fetching news started/finished
author | godisch |
---|---|
date | Mon, 17 Feb 2003 09:18:12 +0000 |
parents | b0e754727abf |
children | 1e595c7ec15f |
comparison
equal
deleted
inserted
replaced
305:00766bc86962 | 306:52ce87d25641 |
---|---|
8 not as server. If noffle runs as server, locking is performed while | 8 not as server. If noffle runs as server, locking is performed while |
9 executing NNTP commands, but temporarily released if no new command is | 9 executing NNTP commands, but temporarily released if no new command is |
10 received for some seconds (to allow multiple clients connect at the same | 10 received for some seconds (to allow multiple clients connect at the same |
11 time). | 11 time). |
12 | 12 |
13 $Id: noffle.c 425 2003-01-30 15:49:23Z bears $ | 13 $Id: noffle.c 440 2003-02-17 09:18:12Z godisch $ |
14 */ | 14 */ |
15 | 15 |
16 #if HAVE_CONFIG_H | 16 #if HAVE_CONFIG_H |
17 #include <config.h> | 17 #include <config.h> |
18 #endif | 18 #endif |
164 { | 164 { |
165 Log_err( "Another 'noffle --fetch' is in progress" ); | 165 Log_err( "Another 'noffle --fetch' is in progress" ); |
166 return; | 166 return; |
167 } | 167 } |
168 | 168 |
169 Log_inf( "Fetching news..." ); | |
169 Cfg_beginServEnum(); | 170 Cfg_beginServEnum(); |
170 while ( Cfg_nextServ( serv ) ) | 171 while ( Cfg_nextServ( serv ) ) |
171 if ( ! noffle.serverPattern | 172 if ( ! noffle.serverPattern |
172 || Wld_match( serv, noffle.serverPattern ) ) | 173 || Wld_match( serv, noffle.serverPattern ) ) |
173 if ( Fetch_init( serv ) ) | 174 if ( Fetch_init( serv ) ) |
189 connOK = connOK && Fetch_getReq_(); | 190 connOK = connOK && Fetch_getReq_(); |
190 | 191 |
191 Fetch_close(); | 192 Fetch_close(); |
192 } | 193 } |
193 | 194 |
195 Log_inf( "Fetching news finished." ); | |
194 Lock_releaseFetchLock(); | 196 Lock_releaseFetchLock(); |
195 } | 197 } |
196 | 198 |
197 /* List articles queued for posting to one particular server */ | 199 /* List articles queued for posting to one particular server */ |
198 static void | 200 static void |