Skip to content

Commit

Permalink
fix: mode debug info
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Nov 1, 2024
1 parent 96849ad commit 9fd5c3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/kubectl-testkube/commands/common/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ func LoginUser(authUri string) (string, string, error) {
ui.H1("Login")
connectorID := ui.Select("Choose your login method", []string{github, gitlab})

ui.Debug("Logging into cloud with parameters", authUri, connectorID)
authUrl, tokenChan, err := cloudlogin.CloudLogin(context.Background(), authUri, strings.ToLower(connectorID))
if err != nil {
return "", "", fmt.Errorf("cloud login: %w", err)
Expand All @@ -467,6 +468,7 @@ func LoginUser(authUri string) (string, string, error) {
return "", "", fmt.Errorf("login cancelled")
}

ui.Debug("Opening login page in browser to get a token", authUrl)
// open browser with login page and redirect to localhost
open.Run(authUrl)

Expand Down

0 comments on commit 9fd5c3f

Please sign in to comment.