]> git.sur5r.net Git - openldap/commitdiff
improve logging...
authorPierangelo Masarati <ando@openldap.org>
Tue, 29 Jun 2004 18:04:30 +0000 (18:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 29 Jun 2004 18:04:30 +0000 (18:04 +0000)
servers/slapd/result.c

index ce00f0d661d2e2bd5c5ce8055397cf704c8cb342..acd3bbd15df991578db5c5fdae09c0e0f0ec7396 100644 (file)
@@ -932,12 +932,12 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
                        {
 #ifdef NEW_LOGGING
                                LDAP_LOG( ACL, INFO, 
-                                       "send_search_entry: conn %lu  access to attribute %s not "
+                                       "send_search_entry: conn %lu access to attribute %s not "
                                        "allowed\n", op->o_connid, desc->ad_cname.bv_val, 0 );
 #else
-                               Debug( LDAP_DEBUG_ACL, "acl: "
-                                       "access to attribute %s not allowed\n",
-                                   desc->ad_cname.bv_val, 0, 0 );
+                               Debug( LDAP_DEBUG_ACL, "send_search_entry: "
+                                       "conn %lu access to attribute %s not allowed\n",
+                                       op->o_connid, desc->ad_cname.bv_val, 0 );
 #endif
                                continue;
                        }
@@ -967,13 +967,13 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
 #ifdef NEW_LOGGING
                                        LDAP_LOG( ACL, INFO, 
                                                "send_search_entry: conn %lu "
-                                               "access to attribute %s, value %d not allowed\n",
+                                               "access to attribute %s, value #%d not allowed\n",
                                                op->o_connid, desc->ad_cname.bv_val, i );
 #else
                                        Debug( LDAP_DEBUG_ACL,
-                                               "acl: access to attribute %s, "
-                                               "value %d not allowed\n",
-                                               desc->ad_cname.bv_val, i, 0 );
+                                               "send_search_entry: conn %lu "
+                                               "access to attribute %s, value #%d not allowed\n",
+                                               op->o_connid, desc->ad_cname.bv_val, i );
 #endif
 
                                        continue;
@@ -1134,8 +1134,10 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
                                "access to attribute %s not allowed\n",
                                op->o_connid, desc->ad_cname.bv_val, 0 );
 #else
-                       Debug( LDAP_DEBUG_ACL, "send_search_entry: access to attribute %s "
-                               "not allowed\n", desc->ad_cname.bv_val, 0, 0 );
+                       Debug( LDAP_DEBUG_ACL,
+                               "send_search_entry: conn %lu "
+                               "access to attribute %s not allowed\n",
+                               op->o_connid, desc->ad_cname.bv_val, 0 );
 #endif
 
                        continue;