diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-28 03:46:43 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-28 03:46:43 +0000 |
commit | 405e8e9540a8ad751ea16cb912f1d0f0e8648feb (patch) | |
tree | a5f2bc7fa431819d3c201bcc66740b384ad88753 /runsc/config | |
parent | 0a7d2ef5a792a2bd01de75c9ed59c99d4872ff0a (diff) | |
parent | 22ac9b07237f79e55b8af64cce02b4753e0c7cab (diff) |
Merge release-20201019.0-79-g22ac9b072 (automated)
Diffstat (limited to 'runsc/config')
-rw-r--r-- | runsc/config/config.go | 3 | ||||
-rw-r--r-- | runsc/config/flags.go | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/runsc/config/config.go b/runsc/config/config.go index f30f79f68..b02d8e2e1 100644 --- a/runsc/config/config.go +++ b/runsc/config/config.go @@ -37,6 +37,9 @@ type Config struct { // RootDir is the runtime root directory. RootDir string `flag:"root"` + // Traceback changes the Go runtime's traceback level. + Traceback string `flag:"traceback"` + // Debug indicates that debug logging should be enabled. Debug bool `flag:"debug"` diff --git a/runsc/config/flags.go b/runsc/config/flags.go index a5f25cfa2..d3203b565 100644 --- a/runsc/config/flags.go +++ b/runsc/config/flags.go @@ -49,6 +49,7 @@ func RegisterFlags() { flag.String("debug-log-format", "text", "log format: text (default), json, or json-k8s.") flag.Bool("alsologtostderr", false, "send log messages to stderr.") flag.Bool("allow-flag-override", false, "allow OCI annotations (dev.gvisor.flag.<name>) to override flags for debugging.") + flag.String("traceback", "system", "golang runtime's traceback level") // Debugging flags: strace related flag.Bool("strace", false, "enable strace.") |