summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2013-04-12 18:58:39 -0400
committerJakub Hrozek <jhrozek@redhat.com>2013-04-15 14:51:44 +0200
commiteeee8d4e089830d337f217ec4921421ab448a8ec (patch)
tree9bef352420e57932f30a4962a75376784ef56742 /src/tools
parent72bb31d9a093bff7b8c7f973b057ed4e9e41d4ca (diff)
downloadsssd-eeee8d4e089830d337f217ec4921421ab448a8ec.tar.gz
sssd-eeee8d4e089830d337f217ec4921421ab448a8ec.tar.xz
sssd-eeee8d4e089830d337f217ec4921421ab448a8ec.zip
sss_cache: Remove annoying messages
When requested entry was not found in one domain, an ERROR message was written to the user even if the entry was found in the next domain and deleted properly.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/sss_cache.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c
index ca3c1cef..9942e6a7 100644
--- a/src/tools/sss_cache.c
+++ b/src/tools/sss_cache.c
@@ -376,15 +376,13 @@ static bool invalidate_entries(TALLOC_CTX *ctx,
}
if (ret != EOK) {
- DEBUG(SSSDBG_MINOR_FAILURE,
- ("Searching for %s in domain %s with filter %s failed\n",
- type_string, dinfo->name, filter));
- if (name) {
- ERROR("No such %1$s named %2$s in domain %3$s, skipping\n",
- type_string, name, dinfo->name);
+ if (ret == ENOENT) {
+ DEBUG(SSSDBG_TRACE_FUNC, ("'%s' %s: Not found in domain '%s'\n",
+ type_string, name ? name : "", dinfo->name));
} else {
- ERROR("No objects of type %1$s from domain %2$s in the cache, "
- "skipping\n", type_string, dinfo->name);
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("Searching for %s in domain %s with filter %s failed\n",
+ type_string, dinfo->name, filter));
}
return false;
}