diff --git a/runsc/cmd/gofer.go b/runsc/cmd/gofer.go index 4b6c284e4..3d4cbfc89 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" @@ -102,6 +103,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)