Skip to content

Commit

Permalink
Adjust logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc committed Oct 30, 2023
1 parent bb2c73f commit 0b529e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ def make_request_with_retry(url, cookies):
# Get Tapis token if authorized to access data files
def get_tapis_token(api_request):
try:
logger.info("Requesting for tapis token")
response = make_request_with_retry(portal_api_root + '/auth/tapis/', api_request.cookies)
if response:
tapis_token = response.json()['token']
logger.info("Received tapis token.")
return tapis_token
else:
logger.exception("Unauthorized to access tapis token")
Expand Down

0 comments on commit 0b529e2

Please sign in to comment.