# HG changeset patch # User Marcin Kuzminski # Date 2016-07-26 11:09:31 # Node ID 0a1ad2be475047911f516403cfa8e262a301cfd3 # Parent 096f94885091955d401eeecc0abaeaf69a5db849 auth-plugins: added better log message about the auth-cache-ttl settings. diff --git a/rhodecode/authentication/base.py b/rhodecode/authentication/base.py --- a/rhodecode/authentication/base.py +++ b/rhodecode/authentication/base.py @@ -573,8 +573,8 @@ def authenticate(username, password, env # 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, env # 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(): """