diff options
author | Lennart Espe <lnsp@users.noreply.github.com> | 2020-10-21 08:33:38 +0000 |
---|---|---|
committer | Lennart Espe <lnsp@users.noreply.github.com> | 2020-10-23 08:46:57 +0000 |
commit | 3b8193e762c1cc37df42104f5abeb6fdc7b70c01 (patch) | |
tree | 98208102cd677cde894ea10d3b634dd4012525b5 /runsc/cmd | |
parent | d45d57f49e71be5cc17e95d649d750d1c93bbf9b (diff) |
Add --traceback flag to customize GOTRACEBACK level
Diffstat (limited to 'runsc/cmd')
-rw-r--r-- | runsc/cmd/boot.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runsc/cmd/boot.go b/runsc/cmd/boot.go index cd419e1aa..2c92e3067 100644 --- a/runsc/cmd/boot.go +++ b/runsc/cmd/boot.go @@ -131,11 +131,11 @@ func (b *Boot) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) return subcommands.ExitUsageError } - // Ensure that if there is a panic, all goroutine stacks are printed. - debug.SetTraceback("system") - conf := args[0].(*config.Config) + // Set traceback level + debug.SetTraceback(conf.Traceback) + if b.attached { // Ensure this process is killed after parent process terminates when // attached mode is enabled. In the unfortunate event that the parent |