[syslog-ng]Lost of facility/level

Jerome Peducasse peducasse@echo.fr
Tue, 2 Apr 2002 17:50:23 +0100


On Tue, Apr 02, 2002 at 04:45:25PM +0200, Balazs Scheidler wrote:
> On Tue, Apr 02, 2002 at 04:22:08PM +0100, Jerome Peducasse wrote:
> > On Tue, Apr 02, 2002 at 12:06:48PM +0200, Balazs Scheidler wrote:
> > > On Tue, Apr 02, 2002 at 11:32:54AM +0100, Jerome Peducasse wrote:
> > > 
> > > maybe the end of line is lost somehow. are your logs terminated with a
> > > single '\n' or a '\r\n' pair?
> > 
> > This is code of MACRO:
> > 
> > #include <syslog.h>
> > 
> > /* usage : KELOG_RELEASE(( priority, "%m while calling read()" WHERE, HERE)); */
> > #define KELOG_RELEASE(fmt) syslog fmt
> 
> And what OS does this code run on? Linux sends a single \n but other Unices
> might send complete \r\n pairs.

On Linux.


> 
> > > 
> > > Looking into the code, this might be the cause of the problem, and if it is
> > > the following patch fixes it. Can you please test this?
> > In 1.5.15, version of sources.c is 1.30 (2002-02-28).
> > The patch will be apply on version 1.31 (2002-03-19).
> > 
> > How can I get version 1.31 ? CVS ?
> 
> CVS is not public, sorry. The patch should apply to an 1.30 version as well.
I apply this patch and I inform you as soon as the next message burst occurs.

Thank you.

-- 
Jerome Peducasse