diff --git a/runsc/cmd/gofer.go b/runsc/cmd/gofer.go index c65e0267a..e1c414f25 100644 --- a/runsc/cmd/gofer.go +++ b/runsc/cmd/gofer.go @@ -20,6 +20,7 @@ import ( "fmt" "os" "path/filepath" + "runtime/debug" "strings" "github.com/google/subcommands" @@ -99,6 +100,9 @@ func (g *Gofer) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) conf := args[0].(*config.Config) + // Set traceback level + debug.SetTraceback(conf.Traceback) + specFile := os.NewFile(uintptr(g.specFD), "spec file") defer specFile.Close() spec, err := specutils.ReadSpecFromFile(g.bundleDir, specFile, conf)