diff src/post.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 f973675760dc
children 28488e0e3630
line wrap: on
line diff
--- a/src/post.c	Tue Jun 19 11:23:43 2001 +0100
+++ b/src/post.c	Sun Aug 05 09:24:22 2001 +0100
@@ -1,7 +1,7 @@
 /*
   post.c
 
-  $Id: post.c 278 2001-05-09 11:15:31Z bears $
+  $Id: post.c 300 2001-08-05 08:24:22Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -76,7 +76,7 @@
     
     Cont_read( grp );
     Cont_app( over );
-    Log_dbg( "Added message '%s' to group '%s'.", msgId, grp );
+    Log_dbg( LOG_DBG_POST, "Added message '%s' to group '%s'.", msgId, grp );
 
     if ( !article.posted )
     {
@@ -92,7 +92,7 @@
 	const char *xref;
 
 	xref = Db_xref( msgId );
-	Log_dbg( "Adding '%s' to Xref of '%s'", grp, msgId );
+	Log_dbg( LOG_DBG_POST, "Adding '%s' to Xref of '%s'", grp, msgId );
 	snprintf( t, MAXCHAR, "%s %s:%i", xref, grp, Ov_numb( over ) );
 	Db_setXref( msgId, t );
     }
@@ -252,7 +252,7 @@
     {
 	if ( article.flags & POST_ADD_FROM )
 	{
-	    Log_dbg( "Adding From field to posted message." );
+	    Log_dbg( LOG_DBG_POST, "Adding From field to posted message." );
 	    DynStr_app( s, "From: " );
 	    if ( ! Prt_genFromHdr( article.over.from ) )
 	    {
@@ -292,7 +292,9 @@
     if ( Cfg_replaceMsgId() )
     {
 	Prt_genMsgId( article.over.msgId, article.over.from, "NOFFLE" );
-	Log_dbg( "Replacing Message-ID with '%s'", article.over.msgId );
+	Log_dbg( LOG_DBG_POST,
+		 "Replacing Message-ID with '%s'",
+		 article.over.msgId );
     }
     else if ( article.over.msgId[ 0 ] == '\0' )
     {
@@ -307,7 +309,7 @@
     {
 	Str path;
 	
-	Log_dbg( "Adding Path field to posted message." );
+	Log_dbg( LOG_DBG_POST, "Adding Path field to posted message." );
 	DynStr_app( s, "Path: " );
 	Utl_cpyStr( path, Cfg_pathHeader() );
 	if ( path[ 0 ] == '\0' )
@@ -318,7 +320,7 @@
     /* Ensure Reply-To header */
     if ( ! replyToFound )
     {
-	Log_dbg( "Adding Reply-To field to posted message." );
+	Log_dbg( LOG_DBG_POST, "Adding Reply-To field to posted message." );
 	DynStr_app( s, "Reply-To: " );
 	DynStr_appLn( s, article.over.from );
     }
@@ -331,7 +333,8 @@
 	Utl_cpyStr( org, Cfg_organization() );
 	if ( org[ 0 ] != '\0' )
 	{
-	    Log_dbg( "Adding Organization field to posted message." );
+	    Log_dbg( LOG_DBG_POST,
+		     "Adding Organization field to posted message." );
 	    DynStr_app( s, "Organization: " );
  	    DynStr_appLn( s, org );
 	}
@@ -380,7 +383,7 @@
 	    /* OK, try to add it. */
 	    Str sline;
 	    
-	    Log_dbg( "Adding .signature to posted message." );
+	    Log_dbg( LOG_DBG_POST, "Adding .signature to posted message." );
 
 	    DynStr_appLn( s, BEGIN_SIG );
 	    sigLines++;