diff options
| author | Andrei Vagin <avagin@gmail.com> | 2019-07-22 23:47:25 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-07-23 08:47:25 +0200 |
| commit | bb071d588df168daf58e1859f93f602790a85dd5 (patch) | |
| tree | cb23f0eb720bc4a48e5555f5f4a6165390062e78 | |
| parent | f171a40c6b33749432df7ba4b02771466a232f3b (diff) | |
vm/gvisor: run runsc with the alsologtostderr option
$ runsc -h
...
-alsologtostderr=false: send log messages to stderr
...
Now gvisor doesn't send log messages on stderr by default,
and if we want to see these messages, we need to specify the
alsologtostderr option.
| -rw-r--r-- | vm/gvisor/gvisor.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go index 306b4e418..4e0ffe645 100644 --- a/vm/gvisor/gvisor.go +++ b/vm/gvisor/gvisor.go @@ -192,6 +192,7 @@ func (inst *instance) runscCmd(add ...string) *exec.Cmd { "-watchdog-action=panic", "-network=none", "-debug", + "-alsologtostderr", } if inst.cfg.RunscArgs != "" { args = append(args, strings.Split(inst.cfg.RunscArgs, " ")...) |
