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

Re: NEW_LOGGING doesn't log (ITS#1767)



This is a multipart message in MIME format.
--=_alternative 006571C185256BA4_=
Content-Type: text/plain; charset="us-ascii"

>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)

NEW_LOGGING does not work with slapadd because it has not been enabled in 
slapadd. If you want to enable it, you can add the following lines to the 
beginning of the main function in slapadd.c:

#ifdef NEW_LOGGING
        lutil_log_initialize ( argc, argv );
#endif


Julius


--=_alternative 006571C185256BA4_=
Content-Type: text/html; charset="us-ascii"


<br>
<br><font size=2><tt>&gt;With slapadd -d -1 -l &lt;the file below&gt;, compiled with -DNEW_LOGGING:<br>
&gt;</tt></font>
<br><font size=2><tt>&gt;dn: dc=my-domain,dc=com<br>
&gt;objectclass: x foobar<br>
&gt;dc: my-domain</tt></font>
<br><font size=2><tt>&gt;</tt></font>
<br><font size=2><tt>&gt;str2entry should log this but doesn't:<br>
&gt;</tt></font>
<br><font size=2><tt>&gt;entry.c:66 &nbsp; &nbsp; &nbsp; &nbsp;LDAP_LOG(( &quot;operation&quot;, LDAP_LEVEL_DETAIL1,<br>
&gt;entry.c:67 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;str2entry: \&quot;%s\&quot;\n&quot;, s ? s : &quot;NULL&quot; ));<br>
&gt;</tt></font>
<br><font size=2><tt>&gt;entry.c:224 &nbsp; &nbsp; &nbsp; &nbsp;LDAP_LOG(( &quot;operation&quot;, LDAP_LEVEL_ERR,<br>
&gt;entry.c:225 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;str2entry: &nbsp;invalid value for syntax %s\n&quot;,<br>
&gt;entry.c:226 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ad-&gt;ad_type-&gt;sat_syntax-&gt;ssyn_oid ));<br>
&gt;</tt></font>
<br><font size=2><tt>&gt;All slapadd says is:</tt></font>
<br><font size=2><tt>&gt;slapadd: could not parse entry (line=4)</tt></font>
<br>
<br><font size=2><tt>NEW_LOGGING does not work with slapadd because it has not been enabled in slapadd. If you want to enable it, you can add the following lines to the beginning of the main function in slapadd.c:</tt></font>
<br>
<br><font size=2><tt>#ifdef NEW_LOGGING</tt></font>
<br><font size=2><tt>&nbsp; &nbsp; &nbsp; &nbsp; lutil_log_initialize ( argc, argv );</tt></font>
<br><font size=2><tt>#endif</tt></font>
<br>
<br>
<br><font size=1 face="sans-serif">Julius</font>
<br>
<br>
--=_alternative 006571C185256BA4_=--