Added debug traces
authorThierry Florac <tflorac@ulthar.net>
Sat, 28 Feb 2015 15:28:24 +0100
changeset 11 7f3ca73c67e6
parent 10 c9cf6a49501f
child 12 f227ffa9e824
Added debug traces
src/pyams_security/security.py
--- a/src/pyams_security/security.py	Sat Feb 28 15:28:02 2015 +0100
+++ b/src/pyams_security/security.py	Sat Feb 28 15:28:24 2015 +0100
@@ -14,6 +14,7 @@
 
 # import standard library
 import logging
+logger = logging.getLogger('PyAMS (security)')
 
 # import interfaces
 from pyams_security.interfaces import IProtectedObject, IRole, IPrincipalInfo, GrantedRoleEvent, RevokedRoleEvent, \
@@ -155,8 +156,7 @@
         # stop inheritance if required
         if not self.inherit_parent_security:
             result.append(DENY_ALL)
-        logging.getLogger('PyAMS').debug(result)
-        print(result)
+        logger.debug('ACL = {0}'.format(str(result)))
         return result