Gentoo Archives: gentoo-user

From: Andrew Tselischev <andrewts@××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] syslog-ng-3.4: time_sleep() deprecated or not?
Date: Wed, 10 Jul 2013 15:01:08
Message-Id: 20130710150050.GA8051@station-gentoo-89r
In Reply to: Re: [gentoo-user] syslog-ng-3.4: time_sleep() deprecated or not? by Mick
1 On Wed, Jul 10, 2013 at 03:32:16PM +0100, Mick wrote:
2 > On Wednesday 10 Jul 2013 11:30:08 Mick wrote:
3 > > On Wednesday 10 Jul 2013 11:15:13 Dan Johansson wrote:
4 > > > On 09.07.2013 20:00, Jarry wrote:
5 > > > > Hi Gentoo-users,
6 > > > >
7 > > > > today I updated syslog-ng on my server. When I checked config
8 > > > > file, I got this message:
9 > > > >
10 > > > > # /etc/init.d/syslog-ng checkconfig
11 > > > > * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
12 > > > > WARNING: Your configuration file uses an obsoleted keyword, please
13 > > > > update your configuration; keyword='time_sleep', change='time_sleep()
14 > > > > has been deprecated since syslog-ng 3.3' [ ok ]
15 > > > > #
16 > > > >
17 > > > > So I checked the new syslog-ng-ose-v3.4-guide-admin.pdf,
18 > > > > but there is nothing about time_sleep() being obsolete
19 > > > > or deprecated. Quite on the contrary: it is listed as
20 > > > > valid option, and even mentioned in the chapter 17
21 > > > > "best practices" as a way of handling lots of parallel
22 > > > > connections.
23 > > > >
24 > > > > So how is it then? Is time_sleep() supported and valid,
25 > > > > or obsolete/deprecated?
26 > > >
27 > > > I also had some issues when I upgraded to 3.4.
28 > > > Most of the warnings went away when I changed the version string in
29 > > > syslog-ng.conf to "@version: 3.4".
30 > > >
31 > > > Just my 2 cents (€)
32 > >
33 > > The new version runs a couple of useful checks on the syntax of the
34 > > configuration file - who would have thought that I had a duplicate
35 > > directive in there! O_o
36 >
37 > Hmm ... I just tried 'less /var/log/syslog' and I now get a binary file ...
38 >
39 > However, most parses it as text. Has something changed in less recently?
40 > --
41 > Regards,
42 > Mick
43
44 No, I think it's syslog-ng that puts null bytes in the log at startup.
45 Now I wonder, was it intended to be a feature or what...