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


> -----Original Message-----
> From: Hallvard B Furuseth [mailto:h.b.furuseth@usit.uio.no]

> #define	LDAP_LOG(a, b, args) do { \
>     if (ldap_loglevels[LDAP_SUBSYS_##a] >= LDAP_LEVEL_##b)
> lutil_log args; \
>   } while(0)
> But where is the value from the -d argument in all this?

We still need a string version of the subsystems for the commandline parser.
	-d operation=6 -d acl=detail1

sets ldap_loglevels[LDAP_SUBSYS_OPERATION] = 6 (LDAP_LEVEL_INFO),
	ldap_loglevels[LDAP_SUBSYS_ACL] = 10 (LDAP_LEVEL_DETAIL1)...

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support