From eeee8d4e089830d337f217ec4921421ab448a8ec Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Fri, 12 Apr 2013 18:58:39 -0400 Subject: 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. --- src/tools/sss_cache.c | 14 ++++++-------- 1 file 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; } -- cgit