##// 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 setting in database which are using the specified prefix. Normally 'py:' is
47 setting in database which are using the specified prefix. Normally 'py:' is
48 used for the legacy plugins.
48 used for the legacy plugins.
49 """
49 """
50
50 log.debug('authentication: running legacy plugin discovery for prefix %s',
51 log.debug('authentication: running legacy plugin discovery for prefix %s',
51 legacy_plugin_prefix)
52 legacy_plugin_prefix)
52 try:
53 try:
@@ -64,10 +65,11 b' def discover_legacy_plugins(config, pref'
64 except Exception as e:
65 except Exception as e:
65 log.exception(
66 log.exception(
66 'Exception while loading legacy authentication plugin '
67 'Exception while loading legacy authentication plugin '
67 '"{}": {}'.format(plugin_id, e.message))
68 '"%s": %s', plugin_id, e)
68
69
69
70
70 def includeme(config):
71 def includeme(config):
72
71 # Set authentication policy.
73 # Set authentication policy.
72 authn_policy = SessionAuthenticationPolicy()
74 authn_policy = SessionAuthenticationPolicy()
73 config.set_authentication_policy(authn_policy)
75 config.set_authentication_policy(authn_policy)
General Comments 0
You need to be logged in to leave comments. Login now