slapi used the old version of the LDAP_LOG macro (caught by Howard)

This commit is contained in:
Pierangelo Masarati 2002-12-27 14:59:01 +00:00
parent b793be6aca
commit e9a74cffba
8 changed files with 64 additions and 32 deletions

View file

@ -243,9 +243,11 @@ do_add( Connection *conn, Operation *op )
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_add: add preOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_add: add preOps failed\n",
0, 0, 0);
#else
Debug (LDAP_DEBUG_TRACE, " add preOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_add: add preOps failed.\n",
0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */
@ -346,9 +348,11 @@ do_add( Connection *conn, Operation *op )
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_add: Add postOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_add: Add postOps failed\n",
0, 0, 0);
#else
Debug (LDAP_DEBUG_TRACE, " Add postOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_add: Add postOps failed.\n",
0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */

View file

@ -710,9 +710,11 @@ backend_unbind(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_bind: Unbind preOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_bind: Unbind preOps "
"failed\n", 0, 0, 0);
#else
Debug (LDAP_DEBUG_TRACE, " Unbind preOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_bind: Unbind preOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */
@ -732,9 +734,11 @@ backend_unbind(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_unbind: Unbind postOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_unbind: Unbind postOps "
"failed\n", 0, 0, 0);
#else
Debug (LDAP_DEBUG_TRACE, " Unbind postOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_unbind: Unbind postOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */

View file

@ -547,9 +547,11 @@ do_bind(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_bind: Bind preOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_bind: Bind preOps failed\n",
0, 0, 0);
#else
Debug(LDAP_DEBUG_TRACE, " Bind preOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_bind: Bind preOps failed.\n",
0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */
@ -630,9 +632,11 @@ do_bind(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_bind: Bind postOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_bind: Bind postOps failed\n",
0, 0, 0);
#else
Debug (LDAP_DEBUG_TRACE, " Bind postOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_bind: Bind postOps failed.\n",
0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */

View file

@ -290,9 +290,11 @@ do_compare(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_compare: compare preOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_compare: compare preOps "
"failed\n", 0, 0, 0);
#else
Debug (LDAP_DEBUG_TRACE, " compare preOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_compare: compare preOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */
@ -315,9 +317,11 @@ do_compare(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_compare: compare postOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_compare: compare postOps "
"failed\n", 0, 0, 0 );
#else
Debug (LDAP_DEBUG_TRACE, " compare postOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_compare: compare postOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */

View file

@ -174,9 +174,11 @@ do_delete(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_delete: delete preOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_delete: delete preOps "
"failed\n", 0, 0, 0 );
#else
Debug (LDAP_DEBUG_TRACE, " delete preOps failed.\n", 0, 0, 0);
Debug (LDAP_DEBUG_TRACE, "do_delete: delete preOps failed.\n",
0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */
@ -231,9 +233,11 @@ do_delete(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_delete: delete postOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_delete: delete postOps "
"failed\n", 0, 0, 0 );
#else
Debug (LDAP_DEBUG_TRACE, " delete postOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_delete: delete postOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */

View file

@ -348,9 +348,11 @@ do_modify(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_modify: modify preOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_modify: modify preOps "
"failed\n", 0, 0, 0 );
#else
Debug (LDAP_DEBUG_TRACE, " modify preOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_modify: modify preOps failed.\n",
0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */
@ -442,9 +444,11 @@ do_modify(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_modify: modify postOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_modify: modify postOps "
"failed\n", 0, 0, 0 );
#else
Debug (LDAP_DEBUG_TRACE, " modify postOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_modify: modify postOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */

View file

@ -349,9 +349,11 @@ do_modrdn(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_modrdn: modrdn preOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_modrdn: modrdn preOps "
"failed\n", 0, 0, 0 );
#else
Debug (LDAP_DEBUG_TRACE, " modrdn preOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_modrdn: modrdn preOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */
@ -412,9 +414,11 @@ do_modrdn(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_modrdn: modrdn postOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_modrdn: modrdn postOps "
"failed\n", 0, 0, 0 );
#else
Debug (LDAP_DEBUG_TRACE, " modrdn postOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_modrdn: modrdn postOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */

View file

@ -363,9 +363,11 @@ do_search(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_search: search preOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_search: search preOps "
"failed\n", 0, 0, 0 );
#else
Debug(LDAP_DEBUG_TRACE, "search preOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_search: search preOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */
@ -391,9 +393,11 @@ do_search(
* FIXME: is this correct?
*/
#ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_INFO, "do_search: search postOps failed\n"));
LDAP_LOG( OPERATION, INFO, "do_search: search postOps "
"failed\n", 0, 0, 0 );
#else
Debug (LDAP_DEBUG_TRACE, " search postOps failed.\n", 0, 0, 0);
Debug(LDAP_DEBUG_TRACE, "do_search: search postOps "
"failed.\n", 0, 0, 0);
#endif
}
#endif /* defined( LDAP_SLAPI ) */