diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2011-07-26 11:58:58 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2011-07-26 11:58:58 -0400 |
commit | 64c268ebead2454ec067bc92844c0c1df9f1e503 (patch) | |
tree | fa466d8bc807ea7004954649dae8c3e40e01ab45 /src/back-sch.c | |
parent | fc1c2c8834799ec3b88d070e56e032eab338af53 (diff) | |
download | slapi-nis-64c268ebead2454ec067bc92844c0c1df9f1e503.tar.gz slapi-nis-64c268ebead2454ec067bc92844c0c1df9f1e503.tar.xz slapi-nis-64c268ebead2454ec067bc92844c0c1df9f1e503.zip |
- get more verbose with logging
Diffstat (limited to 'src/back-sch.c')
-rw-r--r-- | src/back-sch.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/back-sch.c b/src/back-sch.c index a6602c4..c17a353 100644 --- a/src/back-sch.c +++ b/src/back-sch.c @@ -277,6 +277,13 @@ backend_set_entry(Slapi_Entry *e, struct backend_set_data *data) plugin_id = data->common.state->plugin_desc->spd_id; e_dn = slapi_entry_get_sdn(e); ndn = slapi_entry_get_ndn(e); + if (ndn != NULL) { + slapi_log_error(SLAPI_LOG_PLUGIN, plugin_id, + "examining input entry \"%s\"\n", ndn); + } else { + slapi_log_error(SLAPI_LOG_PLUGIN, plugin_id, + "examining unnamed input entry(?)\n"); + } /* Generate the RDN for the entry. */ rdn = format_get_data(data->common.state, e, data->common.group, data->common.set, @@ -358,7 +365,10 @@ backend_set_entry(Slapi_Entry *e, struct backend_set_data *data) value[k] = NULL; if ((k > 0) && (attr != NULL) && (len > 0)) { /* We assumed attribute=value when we - * saved this particular value. */ + * saved this particular value. + * Pull the attribute name out + * of the last attribute=value + * pair that we examined. */ val = memchr(attr, '=', len); if (val != NULL) { *val = '\0'; |