Skip to content

Commit e783d8b

Browse files
serfonfstagni
authored andcommitted
fix: change log level of sensitive info
1 parent afa33d7 commit e783d8b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/DIRAC/Resources/Catalog/RucioFileCatalogClient.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(self, **options):
112112
proxyInfo = getProxyInfo(disableVOMS=True)
113113
if proxyInfo["OK"]:
114114
os.environ["X509_USER_PROXY"] = proxyInfo["Value"]["path"]
115-
sLog.debug("X509_USER_PROXY not defined. Using value from proxyInfo")
115+
sLog.debug(f"X509_USER_PROXY not defined. Using {proxyInfo['Value']['path']}")
116116
try:
117117
try:
118118
self._client = Client()
@@ -125,7 +125,7 @@ def __init__(self, **options):
125125
dn = proxyInfo["Value"]["identity"]
126126
username = proxyInfo["Value"]["username"]
127127
self.account = username
128-
sLog.debug(f"Switching to another account based on DN")
128+
sLog.debug(f"Switching to account {username} mapped to proxy {dn}")
129129

130130
try:
131131
self._client = Client(account=self.account)
@@ -151,7 +151,8 @@ def __init__(self, **options):
151151
self.authHost = options.get("AuthHost", None)
152152
self.caCertPath = Locations.getCAsLocation()
153153
try:
154-
sLog.info("Logging in with a user proxy")
154+
sLog.debug(f"Logging in with a proxy located at: {self.proxyPath}")
155+
sLog.debug("account: ", self.username)
155156
sLog.debug("rucio host: ", self.rucioHost)
156157
sLog.debug("auth host: ", self.authHost)
157158
sLog.debug("CA cert path: ", self.caCertPath)

0 commit comments

Comments
 (0)