]> git.sur5r.net Git - openldap/commitdiff
improve messages
authorPierangelo Masarati <ando@openldap.org>
Thu, 21 Jul 2005 08:54:04 +0000 (08:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 21 Jul 2005 08:54:04 +0000 (08:54 +0000)
servers/slapd/back-meta/bind.c

index d390407d9c16bb3223ef2b848363e606f348f10b..a1605805bc373f95cac5e9d59a1cabedbccbd4d4 100644 (file)
@@ -223,8 +223,11 @@ retry:;
                tv.tv_usec = META_BIND_TIMEOUT;
                switch ( ldap_result( msc->msc_ld, msgid, 0, &tv, &res ) ) {
                case 0:
-                       Debug( LDAP_DEBUG_ANY, "%s meta_back_single_bind: ldap_result=%d nretries=%d\n",
-                               op->o_log_prefix, 0, nretries );
+                       Debug( LDAP_DEBUG_ANY,
+                               "%s meta_back_single_bind: "
+                               "ldap_result=0 nretries=%d%s\n",
+                               op->o_log_prefix, nretries,
+                               rebinding ? " rebinding" : "" );
 
                        if ( nretries != META_RETRY_NEVER ) {
                                ldap_pvt_thread_yield();
@@ -255,7 +258,9 @@ retry:;
                                ldap_abandon_ext( msc->msc_ld, msgid, NULL, NULL );
                        }
 
-                       Debug( LDAP_DEBUG_ANY, "### %s meta_back_single_bind: err=%d nretries=%d\n",
+                       Debug( LDAP_DEBUG_ANY,
+                               "### %s meta_back_single_bind: "
+                               "err=%d nretries=%d\n",
                                op->o_log_prefix, rs->sr_err, nretries );
 
                        rc = slap_map_api2result( rs );
@@ -395,8 +400,11 @@ retry:;
                tv.tv_usec = META_BIND_TIMEOUT;
                switch ( ldap_result( msc->msc_ld, msgid, 0, &tv, &res ) ) {
                case 0:
-                       Debug( LDAP_DEBUG_ANY, "%s meta_back_single_dobind: ldap_result=%d nretries=%d\n",
-                               op->o_log_prefix, 0, nretries );
+                       Debug( LDAP_DEBUG_ANY,
+                               "%s meta_back_single_dobind: "
+                               "ldap_result=0 nretries=%d%s\n",
+                               op->o_log_prefix, nretries,
+                               rebinding ? " rebinding" : "" );
 
                        if ( nretries != META_RETRY_NEVER ) {
                                ldap_pvt_thread_yield();
@@ -428,8 +436,10 @@ retry:;
                                ldap_abandon_ext( msc->msc_ld, msgid, NULL, NULL );
                        }
 
-                       Debug( LDAP_DEBUG_ANY, "### %s meta_back_single_dobind: err=%d nretries=%d\n",
-                                       op->o_log_prefix, rs->sr_err, nretries );
+                       Debug( LDAP_DEBUG_ANY,
+                               "### %s meta_back_single_dobind: "
+                               "err=%d nretries=%d\n",
+                               op->o_log_prefix, rs->sr_err, nretries );
 
                        rc = slap_map_api2result( rs );
                        if ( rc == LDAP_UNAVAILABLE && nretries != META_RETRY_NEVER ) {