mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #7584 from skepticfx:gofer-gotraceback
PiperOrigin-RevId: 449753179
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user