diff src/request.c @ 185:fed1334d766b noffle

[svn] * src/client.c: Change variable only used on constant to 'const'. * src/filter.c: Add a couple of 'return's after ASSERT() to remove compiler warnings about functions needing returns. * NEWS,TODO,configure,configure.in,noffle.conf.example,docs/NOTES, docs/noffle.conf.5,src/client.c,src/configfile.c,src/content.c, src/control.c,src/database.c,src/fetch.c,src/fetchlist.c,src/filter.c, src/group.c,src/lock.c,src/log.c,src/log.h,src/noffle.c,src/outgoing.c, src/post.c,src/protocol.c,src/request.c,src/server.c,src/util.c: Debug logging is always compiled and selected via noffle.conf. All debug logs are classified as all, none, config, control, expire, fetch, filter, newsbase, noffle, post, protocol, requests and server.
author bears
date Sun, 05 Aug 2001 09:24:22 +0100
parents cfad9678e286
children 24d4cd032da5
line wrap: on
line diff
--- a/src/request.c	Tue Jun 19 11:23:43 2001 +0100
+++ b/src/request.c	Sun Aug 05 09:24:22 2001 +0100
@@ -3,7 +3,7 @@
 
   Collection of articles that are marked for download.
 
-  $Id: request.c 178 2000-07-22 09:04:20Z enz $
+  $Id: request.c 300 2001-08-05 08:24:22Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -206,7 +206,7 @@
     FILE*  file;
 
     fileRequest(filename, rs->serv);
-    Log_dbg("appending to request file %s", filename);
+    Log_dbg( LOG_DBG_REQUESTS, "appending to request file %s", filename );
 
     if (Log_check((file = fopen(filename, "a")) != 0,
             "could not open %s for appending: %s", 
@@ -234,7 +234,7 @@
 {
     Reqserv* rs;
     ASSERT( is_open );
-    Log_dbg( "Marking %s on %s for download", msgId, serv );
+    Log_dbg( LOG_DBG_REQUESTS, "Marking %s on %s for download", msgId, serv );
 
     if (getReqserv(serv, &rs) == FALSE) 
       return FALSE;
@@ -268,7 +268,7 @@
   Reqserv*      rs;
 
   fileRequest(filename, serv);
-  Log_dbg("reading request file %s", filename);
+  Log_dbg( LOG_DBG_REQUESTS, "reading request file %s", filename );
 
   file = fopen(filename, "r");
   if (!file && (errno == ENOENT)) {
@@ -310,7 +310,7 @@
   char** z;
 
   fileRequest(filename, rs->serv);
-  Log_dbg("writing request file %s", filename);
+  Log_dbg( LOG_DBG_REQUESTS, "writing request file %s", filename );
 
   if (Log_check((file = fopen(filename, "w")) != 0,
             "could not open %s for writing: %s", 
@@ -345,7 +345,7 @@
     char** z;
     
     ASSERT( is_open );
-    Log_dbg("Req_remove(\"%s\", \"%s\")", serv, msgId);
+    Log_dbg( LOG_DBG_REQUESTS, "Req_remove(\"%s\", \"%s\")", serv, msgId );
     
     if (getReqserv(serv, &rs) == FALSE) 
         return;
@@ -412,7 +412,7 @@
 Bool
 Req_open(void)
 {
-  Log_dbg("opening request database");
+  Log_dbg( LOG_DBG_REQUESTS, "opening request database" );
   ASSERT(is_open == FALSE);
   cleanupReqserv();
   is_open = TRUE;
@@ -426,7 +426,8 @@
 {
   Bool ret = TRUE;
   Reqserv* rs;
-  Log_dbg("closing request database, writing changes to disk");
+  Log_dbg( LOG_DBG_REQUESTS,
+	   "closing request database, writing changes to disk" );
   ASSERT(is_open == TRUE);
 
   for (rs = reqserv; rs; rs = rs->next) {