From: Julius Enarusai Date: Mon, 15 Apr 2002 19:37:49 +0000 (+0000) Subject: Added LDAP_LOG Messages X-Git-Tag: OPENLDAP_REL_ENG_2_MP~202 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=92d24de6e0ae6d41c2e1c2767310fed710f02285;p=openldap Added LDAP_LOG Messages --- diff --git a/servers/slurpd/main.c b/servers/slurpd/main.c index 19949128d3..7a391221b5 100644 --- a/servers/slurpd/main.c +++ b/servers/slurpd/main.c @@ -120,8 +120,13 @@ main( if ( ldap_pvt_thread_create( &(sglob->fm_tid), 0, fm, (void *) NULL ) != 0 ) { +#ifdef NEW_LOGGING + LDAP_LOG (( "main", LDAP_LEVEL_ERR, + "main: file manager ldap_pvt_thread_create failed\n" )); +#else Debug( LDAP_DEBUG_ANY, "file manager ldap_pvt_thread_create failed\n", 0, 0, 0 ); +#endif exit( EXIT_FAILURE ); } @@ -157,7 +162,12 @@ main( /* destroy the thread package */ ldap_pvt_thread_destroy(); +#ifdef NEW_LOGGING + LDAP_LOG (( "main", LDAP_LEVEL_RESULTS, + "main: slurpd terminated\n" )); +#else Debug( LDAP_DEBUG_ANY, "slurpd: terminated.\n", 0, 0, 0 ); +#endif return 0; #endif /* !NO_THREADS */ }