Skip to content

Commit

Permalink
chore(cli): report platform access setup as debug, not error (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger authored Oct 3, 2024
1 parent 25fa4a3 commit 347e16b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/agent/container/setup_loft_platform_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (c *SetupLoftPlatformAccessCmd) Run(_ *cobra.Command, args []string) error
}

if loftConfig == nil {
logger.Debug("Got empty loft config response, Loft Platform acces won't be set up.")
logger.Debug("Got empty loft config response, Loft Platform access won't be set up.")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ func setupLoftPlatformAccess(context, provider, user string, client client2.Base
cmd.Stderr = &errb
err = cmd.Run()
if err != nil {
log.Errorf("failure in setting up Loft Platform access: %s", errb.String())
log.Debugf("failed to set up platform access in workspace: %s", errb.String())
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/loftconfig/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

var backoff = wait.Backoff{
Steps: 4,
Duration: 300 * time.Millisecond,
Duration: 400 * time.Millisecond,
Factor: 1,
Jitter: 0.1,
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/loftconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func AuthDevpodCliToPlatform(config *client.Config, logger log.Logger) error {
cmd := exec.Command("devpod", "pro", "login", "--access-key", config.AccessKey, config.Host)
out, err := cmd.CombinedOutput()
if err != nil {
logger.Debugf("Failed executing `devpod pro login` : %w, output: %s", err, out)
logger.Debugf("Failed executing `devpod pro login`: %w, output: %s", err, out)
return fmt.Errorf("error executing 'devpod pro login' command")
}

Expand Down

0 comments on commit 347e16b

Please sign in to comment.