- Debug( LDAP_DEBUG_ANY,
- "%s: meta_back_init_one_conn quarantine "
- "retry block #%d try #%d.\n",
- op->o_log_prefix, ri->ri_idx, ri->ri_count );
+ if ( LogTest( LDAP_DEBUG_ANY ) ) {
+ char buf[ SLAP_TEXT_BUFLEN ];
+
+ snprintf( buf, sizeof( buf ),
+ "meta_back_init_one_conn[%d]: quarantine "
+ "retry block #%d try #%d",
+ candidate, ri->ri_idx, ri->ri_count );
+ Debug( LDAP_DEBUG_ANY, "%s %s.\n",
+ op->o_log_prefix, buf, 0 );
+ }
+