summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-06-08 13:10:01 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-12 21:28:06 -0400
commit28761338a0f411452c96e40007acf34b289c983f (patch)
tree20a41949df30424c3a7858e9e8d90c87915eb4af
parente9f08ebaba5ec61af74c112f50c7d66257998c97 (diff)
downloadsssd-28761338a0f411452c96e40007acf34b289c983f.tar.gz
sssd-28761338a0f411452c96e40007acf34b289c983f.tar.bz2
sssd-28761338a0f411452c96e40007acf34b289c983f.zip
SYSDB: Reduce noise level of debug messages in lookups
-rw-r--r--src/db/sysdb_ops.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 2d2244bb..528b84f1 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -2252,7 +2252,8 @@ int sysdb_search_users(TALLOC_CTX *mem_ctx,
goto fail;
}
- DEBUG(6, ("Search users with filter: %s\n", filter));
+ DEBUG(SSSDBG_TRACE_INTERNAL,
+ ("Search users with filter: %s\n", filter));
ret = sysdb_search_entry(mem_ctx, sysdb, basedn,
LDB_SCOPE_SUBTREE, filter, attrs,
@@ -2266,10 +2267,10 @@ int sysdb_search_users(TALLOC_CTX *mem_ctx,
fail:
if (ret == ENOENT) {
- DEBUG(SSSDBG_TRACE_FUNC, ("No such entry\n"));
+ DEBUG(SSSDBG_TRACE_INTERNAL, ("No such entry\n"));
}
else if (ret) {
- DEBUG(SSSDBG_TRACE_FUNC, ("Error: %d (%s)\n", ret, strerror(ret)));
+ DEBUG(SSSDBG_MINOR_FAILURE, ("Error: %d (%s)\n", ret, strerror(ret)));
}
talloc_zfree(tmp_ctx);
return ret;
@@ -2410,7 +2411,8 @@ int sysdb_search_groups(TALLOC_CTX *mem_ctx,
goto fail;
}
- DEBUG(6, ("Search groups with filter: %s\n", filter));
+ DEBUG(SSSDBG_TRACE_INTERNAL,
+ ("Search groups with filter: %s\n", filter));
ret = sysdb_search_entry(mem_ctx, sysdb, basedn,
LDB_SCOPE_SUBTREE, filter, attrs,
@@ -2424,10 +2426,10 @@ int sysdb_search_groups(TALLOC_CTX *mem_ctx,
fail:
if (ret == ENOENT) {
- DEBUG(SSSDBG_TRACE_FUNC, ("No such entry\n"));
+ DEBUG(SSSDBG_TRACE_INTERNAL, ("No such entry\n"));
}
else if (ret) {
- DEBUG(SSSDBG_TRACE_FUNC, ("Error: %d (%s)\n", ret, strerror(ret)));
+ DEBUG(SSSDBG_MINOR_FAILURE, ("Error: %d (%s)\n", ret, strerror(ret)));
}
talloc_zfree(tmp_ctx);
return ret;