[syslog-ng]Lost of facility/level

Balazs Scheidler bazsi@balabit.hu
Tue, 2 Apr 2002 16:45:25 +0200


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.

> > 
> > 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.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1