git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
really fixed the redundant logging issue this time.
[sfa.git]
/
sfa
/
trust
/
auth.py
diff --git
a/sfa/trust/auth.py
b/sfa/trust/auth.py
index
218783e
..
5466189
100644
(file)
--- 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.xrn import get_authority
from sfa.util.sfaticket import *
-from sfa.util.sfalogging import
sfa_
logger
+from sfa.util.sfalogging import logger
class Auth:
"""
class Auth:
"""
@@
-36,14
+36,14
@@
class Auth:
valid = []
if not isinstance(creds, list):
creds = [creds]
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)
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
error = sys.exc_info()[:2]
continue