]> git.sur5r.net Git - openldap/commitdiff
Added LDAP_LOG Messages
authorJulius Enarusai <julius@openldap.org>
Mon, 15 Apr 2002 19:37:49 +0000 (19:37 +0000)
committerJulius Enarusai <julius@openldap.org>
Mon, 15 Apr 2002 19:37:49 +0000 (19:37 +0000)
servers/slurpd/main.c

index 19949128d31d294996029b9619ad24eadaa91e8a..7a391221b50530b28aecb430a00223010e47df59 100644 (file)
@@ -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 */
 }