# HG changeset patch # User RhodeCode Admin # Date 2023-05-11 10:26:08 # Node ID 1b1996120ccea5ab83477a80b2ebb17a78a2ea5f # Parent 2fa117d31d1219a81b58401b078c6392c5b2687a auth: optimized logging with lazy eval of params formatting diff --git a/rhodecode/authentication/__init__.py b/rhodecode/authentication/__init__.py --- a/rhodecode/authentication/__init__.py +++ b/rhodecode/authentication/__init__.py @@ -47,6 +47,7 @@ def discover_legacy_plugins(config, pref setting in database which are using the specified prefix. Normally 'py:' is used for the legacy plugins. """ + log.debug('authentication: running legacy plugin discovery for prefix %s', legacy_plugin_prefix) try: @@ -64,10 +65,11 @@ def discover_legacy_plugins(config, pref except Exception as e: log.exception( 'Exception while loading legacy authentication plugin ' - '"{}": {}'.format(plugin_id, e.message)) + '"%s": %s', plugin_id, e) def includeme(config): + # Set authentication policy. authn_policy = SessionAuthenticationPolicy() config.set_authentication_policy(authn_policy)