dovecot-2.0: auth: Log userdb cache hits and misses with auth_de...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Oct 18 17:35:32 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/b0ef4e803b1a
changeset: 12297:b0ef4e803b1a
user: Timo Sirainen <tss at iki.fi>
date: Mon Oct 18 15:35:24 2010 +0100
description:
auth: Log userdb cache hits and misses with auth_debug=yes
diffstat:
src/auth/auth-request.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 953e7c6e546b -r b0ef4e803b1a src/auth/auth-request.c
--- a/src/auth/auth-request.c Mon Oct 18 15:07:02 2010 +0100
+++ b/src/auth/auth-request.c Mon Oct 18 15:35:24 2010 +0100
@@ -733,8 +733,12 @@
value = auth_cache_lookup(passdb_cache, request, key, &node,
&expired, &neg_expired);
- if (value == NULL || (expired && !use_expired))
+ if (value == NULL || (expired && !use_expired)) {
+ auth_request_log_debug(request, "userdb-cache",
+ value == NULL ? "miss" : "expired");
return FALSE;
+ }
+ auth_request_log_debug(request, "userdb-cache", "hit: %s", value);
if (*value == '\0') {
/* negative cache entry */
More information about the dovecot-cvs
mailing list