summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-04-15 09:20:22 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-04-15 11:36:59 -0400
commit0752902ba3c9e048957aede22254659c76000cdb (patch)
tree44f1f17ab7824fcdc516bdcde0e7ca5276f11b72 /src
parentf5bea9813a8b8e1d90e28f27c2fe81fa819959e0 (diff)
downloadsssd-0752902ba3c9e048957aede22254659c76000cdb.tar.gz
sssd-0752902ba3c9e048957aede22254659c76000cdb.tar.xz
sssd-0752902ba3c9e048957aede22254659c76000cdb.zip
Add debug logging to the negative cache
Diffstat (limited to 'src')
-rw-r--r--src/responder/common/negcache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c
index 5f85df25d..d8c4c2698 100644
--- a/src/responder/common/negcache.c
+++ b/src/responder/common/negcache.c
@@ -71,6 +71,8 @@ static int sss_ncache_check_str(struct sss_nc_ctx *ctx, char *str, int ttl)
char *ep;
int ret;
+ DEBUG(8, ("Checking negative cache for [%s]\n", str));
+
ret = string_to_tdb_data(str, &key);
if (ret != EOK) goto done;
@@ -141,6 +143,9 @@ static int sss_ncache_set_str(struct sss_nc_ctx *ctx,
ret = string_to_tdb_data(timest, &data);
if (ret != EOK) goto done;
+ DEBUG(6, ("Adding [%s] to negative cache%s\n",
+ str, permanent?" permanently":""));
+
ret = tdb_store(ctx->tdb, key, data, TDB_REPLACE);
if (ret != 0) {
DEBUG(1, ("Negative cache failed to set entry: [%s]\n",