X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Ftrust%2Fauth.py;h=5466189650d14bb7503b813db1e573e3fc0e14ec;hb=3eea82897aba845da0d12c1ba56012e599f58853;hp=218783e203aa59cd05e0fcddb74953104eb1ecdb;hpb=6a916bd26a48a8315fcabf08f8232a73e81d6f59;p=sfa.git diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 218783e2..54661896 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -12,7 +12,7 @@ from sfa.util.config import * from sfa.util.xrn import get_authority from sfa.util.sfaticket import * -from sfa.util.sfalogging import sfa_logger +from sfa.util.sfalogging import logger class Auth: """ @@ -36,14 +36,14 @@ class Auth: valid = [] if not isinstance(creds, list): creds = [creds] - sfa_logger().debug("Auth.checkCredentials with %d creds"%len(creds)) + logger.debug("Auth.checkCredentials with %d creds"%len(creds)) for cred in creds: try: self.check(cred, operation, hrn) valid.append(cred) except: cred_obj=Credential(string=cred) - sfa_logger().debug("failed to validate credential - dump=%s"%cred_obj.dump_string(dump_parents=True)) + logger.debug("failed to validate credential - dump=%s"%cred_obj.dump_string(dump_parents=True)) error = sys.exc_info()[:2] continue