[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4666) -d ? says: unrecognized log level '?'
Mark Smith wrote:
> That was fast! I tested the HEAD and got this output:
>
>> Installed log subsystems:
>>
>> Any (-1)
>> Trace (1)
>> Packets (2)
>> Args (4)
>> Conns (8)
>> BER (16)
>> Filter (32)
>> Config (64)
>> ACL (128)
>> Stats (256)
>> Stats2 (512)
>> Shell (1024)
>> Parse (2048)
>> Sync (16384)
>> None (32768)
>>
>> NOTE: custom log subsystems may be later installed by specific code
>
> This is great, although I am not sure what the NOTE means exactly. I
> assume the OpenLDAP log system is extensible, e.g., I could write an
> overlay that added a log subsystem named Stats3? Or it would only be
> selectable with -d using a number such as 65536?
It is. As far as I know, pcache is the only official overlay that adds
a log level; however, this occurs after options parsing. In that case,
we should defer handling of "-d '?'" to after backends (and overlays)
are initialized. I'll leave this for later.
p.
Ing. Pierangelo Masarati
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
------------------------------------------