Mercurial > noffle
view src/log.h @ 193:021d145e34e9 noffle
[svn] * src/fetch.c: Only leave articles in the requested list if the error
fetching them was fatal. Otherwise article requests will accumulate
indefinitely (e.g retrieving through NNTPcache when it can't find
the body of an article, now or event. Yes, this happened to me; I
had nearly 2000 requests backed up and never being cleared).
* src/group.c: The weekend's change introduced code that causes a bus
error on Sparc ( *(time_t *)p = xxx ). Replace with a safe memcpy,
and also use memcpy when reading the Entry and time items to remove
warnings on Sparc compilation.
author | bears |
---|---|
date | Mon, 22 Oct 2001 14:41:43 +0100 |
parents | fed1334d766b |
children | 5eece4dfd945 |
line wrap: on
line source
/* log.h Print log messages to syslog, stdout/stderr. $Id: log.h 300 2001-08-05 08:24:22Z bears $ */ #ifndef LOG_H #define LOG_H #if HAVE_CONFIG_H #include <config.h> #endif #include "common.h" /* Debug logging subsystem identifiers. Can be ORd together. Debug logging can be turned on in the configuration file; by default it is off. */ #define LOG_DBG_CONFIG (0x0001) #define LOG_DBG_CONTROL (0x0002) #define LOG_DBG_EXPIRE (0x0004) #define LOG_DBG_FETCH (0x0008) #define LOG_DBG_FILTER (0x0010) #define LOG_DBG_NEWSBASE (0x0020) #define LOG_DBG_NOFFLE (0x0040) #define LOG_DBG_POST (0x0080) #define LOG_DBG_PROTOCOL (0x0100) #define LOG_DBG_REQUESTS (0x0200) #define LOG_DBG_SERVER (0x0400) #define LOG_DBG_ALL (0xffff) #define LOG_DBG_NONE (0x0000) /* Initialise logging (required before using any log functions). name: program name for syslog interactive: print messages also to stderr/stdout facility: like syslog */ void Log_init( const char *name, Bool interactive, int facility ); /* Log level info */ void Log_inf( const char *fmt, ... ); /* Log level error */ void Log_err( const char *fmt, ... ); /* Check for cond being true. Otherwise log an error, and return 1. */ int Log_check( int cond, const char *fmt, ... ); /* Log level notice */ void Log_ntc( const char *fmt, ... ); /* Log level debug on indicated subsystem */ void Log_dbg( unsigned subsystem, const char *fmt, ... ); /* Set debug log mask */ void Log_setDbgMask( unsigned mask ); #endif