[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Logging: -d -1 doesn't work (ITS#1144)



I included a change to take care of this with my
last change to debug.c.  If any negative number
is passed in as the debug value, the global
value is set to 65535.  This should turn on
everything available.

> -----Original Message-----
> From: sxw@sxw.org.uk [mailto:sxw@sxw.org.uk]
> Sent: Thursday, May 10, 2001 2:31 PM
> To: openldap-its@OpenLDAP.org
> Subject: Logging: -d -1 doesn't work (ITS#1144)
> 
> 
> Full_Name: Simon Wilkinson
> Version: CVS HEAD
> OS: Linux
> URL: 
> Submission from: (NULL) (129.215.199.88)
> 
> 
> Providing -d -1 doesn't work with the NEWLOGGING code. This is because
> global_value
> is a signed int, and less-than comparisons are done between 
> it and the reported
> 
> levels.
> 
> I guess the fix would be to make global_value INT_MAX if -1 
> is passed to 
> lutil_log_initialize - I could provide a patch for this if desired.
>