Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
parasj committed Jul 13, 2022
1 parent 94211f8 commit 63197aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skyplane/cli/cli_impl/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def disable_gcp_support():
config.gcp_enabled = True
return config

typer.secho(f" Using GCP service account {config.service_account_name}", fg="blue")

# check if GCP is enabled
inferred_cred, inferred_project = GCPAuthentication.get_adc_credential()
if inferred_cred is None or inferred_project is None:
Expand Down
1 change: 1 addition & 0 deletions skyplane/compute/gcp/gcp_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def credentials(self):
@property
def service_account_credentials(self):
if self._service_credentials_file is None:
logger.debug(f"Using service account {self.service_account_name}")
self._service_account_email = self.create_service_account(self.service_account_name)
logger.debug(f"Created service account {self.service_account_name} email={self._service_account_email} for GCP")
self._service_credentials_file = self.get_service_account_key(self._service_account_email)
Expand Down

0 comments on commit 63197aa

Please sign in to comment.