Skip to content

Commit

Permalink
Residency initialization and session initialization logging. (#54)
Browse files Browse the repository at this point in the history
* Fixed another place where residency is initialized. Change to log session initialization parameters
  • Loading branch information
ptrakhtman authored Jul 16, 2020
1 parent 91a0445 commit cdf9ed9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions almdrlib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _init_session(self, *args, **kwargs):
account_id = kwargs.get('account_id')
profile = kwargs.get('profile')
global_endpoint = kwargs.get('global_endpoint')
residency = kwargs.get('residency', 'us')
residency = kwargs.get('residency', 'default')
aims_token = kwargs.get('aims_token')

self._config = Config(
Expand All @@ -127,12 +127,14 @@ def _init_session(self, *args, **kwargs):
else:
self._access_key_id, self._secret_key = self._config.get_auth()

logger.debug("Initialized session. "
f"access_key_id={self._access_key_id}, "
f"account_id={self._account_id}, "
f"profile={profile}, "
f"global_endpoint={self._global_endpoint}"
)
logger.debug(
"Initialized session. "
f"access_key_id={self._access_key_id}, "
f"account_id={self._account_id}, "
f"profile={profile}, "
f"global_endpoint={self._global_endpoint}, "
f"residency={self._residency}"
)

def _authenticate(self):
"""
Expand Down

0 comments on commit cdf9ed9

Please sign in to comment.