diff src/protocol.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 94f2e5607772
children 76460d98b2fb
line wrap: on
line diff
--- a/src/protocol.c	Tue Jun 19 11:23:43 2001 +0100
+++ b/src/protocol.c	Sun Aug 05 09:24:22 2001 +0100
@@ -1,7 +1,7 @@
 /*
   protocol.c
 
-  $Id: protocol.c 248 2001-01-25 11:00:03Z bears $
+  $Id: protocol.c 300 2001-08-05 08:24:22Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -70,7 +70,7 @@
         if ( len > 1 && line[ len - 2 ] == '\r' )
             line[ len - 2 ] = '\0';
     }
-    Log_dbg( "[R] %s", line );
+    Log_dbg( LOG_DBG_PROTOCOL, "[R] %s", line );
     return TRUE;
 }
 
@@ -103,12 +103,12 @@
 {
     if ( line[ 0 ] == '.' )
     {
-        Log_dbg( "[S] .%s", line );
+        Log_dbg( LOG_DBG_PROTOCOL, "[S] .%s", line );
         return ( fprintf( f, ".%s\r\n", line ) == (int)strlen( line ) + 3 );
     }
     else
     {
-        Log_dbg( "[S] %s", line );
+        Log_dbg( LOG_DBG_PROTOCOL, "[S] %s", line );
         return ( fprintf( f, "%s\r\n", line ) == (int)strlen( line ) + 2 );
     }
 }
@@ -116,7 +116,7 @@
 Bool
 Prt_putEndOfTxt( FILE *f )
 {
-    Log_dbg( "[S] ." );
+    Log_dbg( LOG_DBG_PROTOCOL, "[S] ." );
     return ( fprintf( f, ".\r\n" ) == 3 );
 }