Use h.SetLogger

pull/3660/head
Thomas Stromberg 2019-02-14 14:40:32 -08:00
parent 0c8a452e97
commit 531e6b0f72
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
golog "log"
"os"
"os/user"
"path"
@ -220,6 +221,9 @@ func (d *Driver) Start() error {
h.CPUs = d.CPU
h.Memory = d.Memory
h.UUID = d.UUID
// This should stream logs from hyperkit, but doesn't seem to work.
logger := glog.New(os.Stderr, "hyperkit", golog.LstdFlags)
h.SetLogger(logger)
if vsockPorts, err := d.extractVSockPorts(); err != nil {
return err