MCPcopy
hub / github.com/dgraph-io/dgraph / archiveDebugInfo

Function archiveDebugInfo

dgraph/cmd/debuginfo/run.go:133–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func archiveDebugInfo() error {
134 archivePath, err := createGzipArchive(debugInfoCmd.directory)
135 if err != nil {
136 return fmt.Errorf("error while archiving debuginfo directory: %s", err)
137 }
138
139 glog.Infof("Debuginfo archive successful: %s", archivePath)
140
141 if err = os.RemoveAll(debugInfoCmd.directory); err != nil {
142 glog.Warningf("error while removing debuginfo directory: %s", err)
143 }
144 return nil
145}

Callers 1

collectDebugInfoFunction · 0.85

Calls 5

createGzipArchiveFunction · 0.85
InfofMethod · 0.80
RemoveAllMethod · 0.80
WarningfMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected