[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
syslog level or (open)ldap level?
- To: openldap-devel@OpenLDAP.org
- Subject: syslog level or (open)ldap level?
- From: "Pierangelo Masarati" <ando@sys-net.it>
- Date: Mon, 19 Dec 2005 15:09:09 +0100 (CET)
- Importance: Normal
- User-agent: SquirrelMail/1.4.3a-1
Recently, while trying to fix what I considered a bug, I changed the
parsing of slapd's '-s' option to reflect what was my interpretation of
the slapd(8) man page, i.e. tell slapd to log at a certain syslog level
(LOG_* according to syslog(3)). In fact, in the sources, the variable
ldap_syslog_level is initialized to LOG_DEBUG which seems pretty safe.
However, the tests set it to 0 (in scripts/defines.sh:
SLAPD="../servers/slapd/slapd -s0") which, at least on my Linux box, means
LOG_EMERG, i.e. everything gets sent to every console. Could anybody
clarify if my interpretation of '-s' is correct, and if syslog's numerical
values are portable? I'll definitely write a friendly parser for -s,
though.
p.
Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati@sys-net.it
------------------------------------------