[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
NEW_LOGGING doesn't log (ITS#1767)
Full_Name: Hallvard B. Furuseth
Version: HEAD (2002-04-23)
OS: Linux
URL:
Submission from: (NULL) (158.36.148.34)
With slapadd -d -1 -l <the file below>, compiled with -DNEW_LOGGING:
dn: dc=my-domain,dc=com
objectclass: x foobar
dc: my-domain
str2entry should log this but doesn't:
entry.c:66 LDAP_LOG(( "operation", LDAP_LEVEL_DETAIL1,
entry.c:67 "str2entry: \"%s\"\n", s ? s : "NULL" ));
entry.c:224 LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
entry.c:225 "str2entry: invalid value for syntax %s\n",
entry.c:226 ad->ad_type->sat_syntax->ssyn_oid ));
All slapadd says is:
slapadd: could not parse entry (line=4)
What was wrong with the good old `if (ldap_debug & level) { log... }'
algorithm anyway? It was simple, predictable, and fast. NEW_LOGGING
seems to be neither.