summaryrefslogtreecommitdiff
path: root/repoze/bfg/security.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-11-01 19:38:00 +0000
committerChris McDonough <chrism@agendaless.com>2008-11-01 19:38:00 +0000
commit2fc5d11826931435cfb42e2f334391c783f31f1d (patch)
tree1fc16b337770eadf6f92d253de4100c40b8be6ab /repoze/bfg/security.py
parent41a062f587a19e536403cffbcebf0a301747a628 (diff)
downloadpyramid-2fc5d11826931435cfb42e2f334391c783f31f1d.tar.gz
pyramid-2fc5d11826931435cfb42e2f334391c783f31f1d.tar.bz2
pyramid-2fc5d11826931435cfb42e2f334391c783f31f1d.zip
- 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.
Diffstat (limited to 'repoze/bfg/security.py')
-rw-r--r--repoze/bfg/security.py2
1 files changed, 1 insertions, 1 deletions
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)