From af6f54dbae18f4c2162566304147e50f7bc3dd2e Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 26 Jul 2016 13:09:31 +0200 Subject: [PATCH] auth-plugins: added better log message about the auth-cache-ttl settings. --- rhodecode/authentication/base.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rhodecode/authentication/base.py b/rhodecode/authentication/base.py index 8474d089..db5d12d6 100644 --- a/rhodecode/authentication/base.py +++ b/rhodecode/authentication/base.py @@ -573,8 +573,8 @@ def authenticate(username, password, environ=None, auth_type=None, # get instance of cache manager configured for a namespace cache_manager = get_auth_cache_manager(custom_ttl=_cache_ttl) - log.debug('Cache for plugin `%s` active: %s', plugin.get_id(), - plugin_cache_active) + log.debug('AUTH_CACHE_TTL for plugin `%s` active: %s (TTL: %s)', + plugin.get_id(), plugin_cache_active, _cache_ttl) # for environ based password can be empty, but then the validation is # on the server that fills in the env data needed for authentication @@ -587,8 +587,7 @@ def authenticate(username, password, environ=None, auth_type=None, # to RhodeCode database. If this function returns data # then auth is correct. start = time.time() - log.debug('Running plugin `%s` _authenticate method', - plugin.get_id()) + log.debug('Running plugin `%s` _authenticate method', plugin.get_id()) def auth_func(): """