From 2fc5d11826931435cfb42e2f334391c783f31f1d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 1 Nov 2008 19:38:00 +0000 Subject: - Expose a single ILogger named "repoze.bfg.debug" as a utility; this logger is registered unconditionally and is used by the authorization debug machinery. Applications may also make use of it as necessary rather than inventing their own logger, for convenience. --- repoze/bfg/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoze/bfg/security.py') diff --git a/repoze/bfg/security.py b/repoze/bfg/security.py index 9f551419d..f1149cc7a 100644 --- a/repoze/bfg/security.py +++ b/repoze/bfg/security.py @@ -104,7 +104,7 @@ class ACLSecurityPolicy(object): def permits(self, context, request, permission): """ Return ``Allowed`` if the policy permits access, ``Denied`` if not.""" - logger = queryUtility(ILogger, name='repoze.bfg.authdebug') + logger = queryUtility(ILogger, name='repoze.bfg.debug') principals = self.effective_principals(request) for location in lineage(context): authorizer = self.authorizer_factory(location, logger) -- cgit v1.2.3