X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Ftrust%2Fcredential.py;h=63233d2bb31db5cb909223242d76baa7299152e0;hp=4971cdd0cebd6e49973284d2630432ba01950560;hb=cb83b38f6586314d51e23dad227047d126bd4b76;hpb=486075bb8f430ef053c3dc73c2f3ebc6b066c133 diff --git a/sfa/trust/credential.py b/sfa/trust/credential.py index 4971cdd0..63233d2b 100644 --- a/sfa/trust/credential.py +++ b/sfa/trust/credential.py @@ -660,7 +660,7 @@ class Credential(object): trusted_cert_objects.append(GID(filename=f)) ok_trusted_certs.append(f) except Exception, exc: - sfa_logger.error("Failed to load trusted cert from %s: %r", f, exc) + sfa_logger().error("Failed to load trusted cert from %s: %r", f, exc) trusted_certs = ok_trusted_certs # Use legacy verification if this is a legacy credential @@ -743,7 +743,7 @@ class Credential(object): # Maybe should be (hrn, type) = urn_to_hrn(root_cred_signer.get_urn()) root_cred_signer_type = root_cred_signer.get_type() if (root_cred_signer_type == 'authority'): - #sfa_logger.debug('Cred signer is an authority') + #sfa_logger().debug('Cred signer is an authority') # signer is an authority, see if target is in authority's domain hrn = root_cred_signer.get_hrn() if root_target_gid.get_hrn().startswith(hrn):