diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-15 09:20:22 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-15 11:36:51 -0400 |
commit | 87cc48df526d01e5085a1acf736e11219be34760 (patch) | |
tree | a4835ff64f9e5cc122c32e8097ab8440fe17ee81 /src/responder | |
parent | 6b608e6fc8ae5b4623a924a00fa5e4dfde3e57c2 (diff) | |
download | sssd-87cc48df526d01e5085a1acf736e11219be34760.tar.gz sssd-87cc48df526d01e5085a1acf736e11219be34760.tar.bz2 sssd-87cc48df526d01e5085a1acf736e11219be34760.zip |
Add debug logging to the negative cache
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/common/negcache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c index 5f85df25..d8c4c269 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", |