debugging panic()
This commit is contained in:
parent
961ca8f41e
commit
111c67e975
|
@ -348,7 +348,7 @@ func (psets *Patchsets) PrintTable() {
|
||||||
args = []string{p.CommitHash, p.NewHash, cId, partId, fname, p.GetNamespace(), "", "", "", "", ""}
|
args = []string{p.CommitHash, p.NewHash, cId, partId, fname, p.GetNamespace(), "", "", "", "", ""}
|
||||||
|
|
||||||
start := cobol.StandardTableSize10(sizes, args)
|
start := cobol.StandardTableSize10(sizes, args)
|
||||||
log.Info(start)
|
cobol.TerminalCut(start)
|
||||||
countPARTS += 1
|
countPARTS += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,13 @@ import (
|
||||||
|
|
||||||
// retrieves current patches from forge
|
// retrieves current patches from forge
|
||||||
func (f *Forge) GetPatches() error {
|
func (f *Forge) GetPatches() error {
|
||||||
|
/*
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
log.Warn("PANIC ecovered in loadUpstream()", r)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
*/
|
||||||
url := f.forgeURL + "GetPatchsets"
|
url := f.forgeURL + "GetPatchsets"
|
||||||
log.Info("GetPatchsets() url", url)
|
log.Info("GetPatchsets() url", url)
|
||||||
body, err := f.HttpPost(url, nil)
|
body, err := f.HttpPost(url, nil)
|
||||||
|
@ -29,6 +36,14 @@ func (f *Forge) GetPatches() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) {
|
func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) {
|
||||||
|
/*
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
log.Warn("PANIC ecovered in loadUpstream()", r)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
*/
|
||||||
|
|
||||||
var foundnew bool
|
var foundnew bool
|
||||||
all := psets.All()
|
all := psets.All()
|
||||||
for all.Scan() {
|
for all.Scan() {
|
||||||
|
|
Loading…
Reference in New Issue