Skip to content

Commit

Permalink
update log
Browse files Browse the repository at this point in the history
  • Loading branch information
minhio committed Jan 11, 2024
1 parent bc45935 commit b466f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/devpod/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func Start() error {
return err
}

log.Default().Printf("[devpod] instance state: %s", instance.State)

if instance.State == multipass.STATE_STOPPED {
err := client.Set(machine.ID, multipass.CPUS, fmt.Sprint(opts.Cpus))
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions pkg/devpod/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ func Status() error {
}

status := statusMap[instance.State]

log.Default().Printf("[devpod] status: %s", status)
_, err = fmt.Fprint(os.Stdout, status)
return err
}

0 comments on commit b466f54

Please sign in to comment.