Skip to content

Commit

Permalink
on run immediatly tell users VM's log file location
Browse files Browse the repository at this point in the history
...so that they know where to look in case things went wrong on boot

Signed-off-by: António Meireles <[email protected]>
  • Loading branch information
AntonioMeireles committed Nov 13, 2016
1 parent 22f219a commit 2b39d3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ func runCommand(cmd *cobra.Command, args []string) (err error) {

func bootIt(vm *server.VMInfo) (err error) {
var reply = &server.RPCreply{}
log.Info("'%v' boot logs can be found at '%v'", vm.Name, vm.Log())
if reply, err =
server.RPCQuery("Run", &server.RPCquery{VM: vm}); err != nil {
return
}
log.Info("'%v' started successfuly with address %v and PID %v",
reply.VM.Name, reply.VM.PublicIP, reply.VM.Pid)
log.Info("'%v' boot logs can be found at '%v'",
reply.VM.Name, reply.VM.Log())
log.Info("'%v' console can be found at '%v'", reply.VM.Name, reply.VM.TTY())
return
}
Expand Down

0 comments on commit 2b39d3c

Please sign in to comment.