Skip to content

Commit 7eeb723

Browse files
authored
Merge pull request #3310 from Ali-Razmjoo/fix-logging
Fix logging of sensitive information in pai.py
2 parents 74e6e63 + 068259b commit 7eeb723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luigi/contrib/pai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def __init_token(self):
239239

240240
request_json = json.dumps({'username': self.__openpai.username, 'password': self.__openpai.password,
241241
'expiration': self.__openpai.expiration})
242-
logger.debug('Get token request {0}'.format(request_json))
242+
logger.debug('Requesting token from OpenPai')
243243
response = rs.post(urljoin(self.__openpai.pai_url, '/api/v1/token'),
244244
headers={'Content-Type': 'application/json'}, data=request_json)
245245
logger.debug('Get token response {0}'.format(response.text))

0 commit comments

Comments
 (0)