diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-08 13:10:01 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-12 21:28:06 -0400 |
commit | 28761338a0f411452c96e40007acf34b289c983f (patch) | |
tree | 20a41949df30424c3a7858e9e8d90c87915eb4af /src/db | |
parent | e9f08ebaba5ec61af74c112f50c7d66257998c97 (diff) | |
download | sssd-28761338a0f411452c96e40007acf34b289c983f.tar.gz sssd-28761338a0f411452c96e40007acf34b289c983f.tar.bz2 sssd-28761338a0f411452c96e40007acf34b289c983f.zip |
SYSDB: Reduce noise level of debug messages in lookups
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_ops.c | 14 |
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; |