##// END OF EJS Templates
auth: optimized logging with lazy eval of params formatting
super-admin -
r5029:1b199612 default
parent child Browse files
Show More
@@ -47,6 +47,7 b' def discover_legacy_plugins(config, pref'
47 47 setting in database which are using the specified prefix. Normally 'py:' is
48 48 used for the legacy plugins.
49 49 """
50
50 51 log.debug('authentication: running legacy plugin discovery for prefix %s',
51 52 legacy_plugin_prefix)
52 53 try:
@@ -64,10 +65,11 b' def discover_legacy_plugins(config, pref'
64 65 except Exception as e:
65 66 log.exception(
66 67 'Exception while loading legacy authentication plugin '
67 '"{}": {}'.format(plugin_id, e.message))
68 '"%s": %s', plugin_id, e)
68 69
69 70
70 71 def includeme(config):
72
71 73 # Set authentication policy.
72 74 authn_policy = SessionAuthenticationPolicy()
73 75 config.set_authentication_policy(authn_policy)
General Comments 0
You need to be logged in to leave comments. Login now