Skip to content

Commit

Permalink
Add debug log when ignoring configured endpoint
Browse files Browse the repository at this point in the history
Add a debug statement when specifically ignoring the configured
endpoint URL from the shared configuration file or an environment
variable. This will not be logged if the endpoint URL is set through
the client constructor.
  • Loading branch information
kdaily committed Jun 20, 2023
1 parent ce89896 commit e43091c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions botocore/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,11 @@ def compute_client_args(
}

def _compute_configured_endpoint_url(self, client_config, endpoint_url):
if endpoint_url is not None or self._ignore_configured_endpoint_urls(
client_config
):
if self._ignore_configured_endpoint_urls(client_config):
logger.debug("Ignoring configured endpoint URLs.")
return endpoint_url

if endpoint_url is not None:
return endpoint_url

return self._config_store.get_config_variable('endpoint_url')
Expand Down

0 comments on commit e43091c

Please sign in to comment.