summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-07-14 13:16:39 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-07-17 10:58:52 +0200
commit890ae77c52e36f222655d710439d2fe25f15101b (patch)
tree364ac0a45d849319ffaace4d0faa4f486b2538e6
parent4f1897ad419790834573643e88ac03e6c5c1c4be (diff)
downloadsssd-890ae77c52e36f222655d710439d2fe25f15101b.tar.gz
sssd-890ae77c52e36f222655d710439d2fe25f15101b.tar.xz
sssd-890ae77c52e36f222655d710439d2fe25f15101b.zip
Update few debug messages
It reduces a noise caused by canonicalization of non-existing user. Resolves: https://fedorahosted.org/sssd/ticket/2678 Reviewed-by: Pavel Reichl <preichl@redhat.com>
-rw-r--r--src/db/sysdb_search.c7
-rw-r--r--src/providers/ldap/ldap_id.c5
2 files changed, 7 insertions, 5 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index 4f617b841..5f33b225a 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -1707,10 +1707,11 @@ errno_t sysdb_get_real_name(TALLOC_CTX *mem_ctx,
&res);
if (ret == EOK && res->count == 1) {
msg = res->msgs[0];
- } else {
+ } else if (ret != ENOENT) {
DEBUG(SSSDBG_OP_FAILURE,
- "sysdb_search_object_by_uuid did not return a " \
- "single result.\n");
+ "sysdb_search_object_by_uuid failed or returned "
+ "more than one result [%d][%s].\n",
+ ret, sss_strerror(ret));
ret = ENOENT;
goto done;
}
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c
index 73840d288..905bbd94d 100644
--- a/src/providers/ldap/ldap_id.c
+++ b/src/providers/ldap/ldap_id.c
@@ -1224,8 +1224,9 @@ static void groups_by_user_done(struct tevent_req *subreq)
ret = sysdb_get_real_name(state, state->domain, state->name, &cname);
if (ret != EOK) {
cname = state->name;
- DEBUG(SSSDBG_OP_FAILURE,
- "Failed to canonicalize name, using [%s].\n", cname);
+ DEBUG(SSSDBG_TRACE_INTERNAL,
+ "Failed to canonicalize name, using [%s] [%d]: %s.\n",
+ cname, ret, sss_strerror(ret));
}
}