From 111c67e97573c4a8714a3f124043cfc3e54b9300 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Sep 2025 00:14:44 -0500 Subject: [PATCH] debugging panic() --- humanTable.go | 2 +- patchset.Get.go | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/humanTable.go b/humanTable.go index 9516d3f..d3980d2 100644 --- a/humanTable.go +++ b/humanTable.go @@ -348,7 +348,7 @@ func (psets *Patchsets) PrintTable() { args = []string{p.CommitHash, p.NewHash, cId, partId, fname, p.GetNamespace(), "", "", "", "", ""} start := cobol.StandardTableSize10(sizes, args) - log.Info(start) + cobol.TerminalCut(start) countPARTS += 1 } } diff --git a/patchset.Get.go b/patchset.Get.go index 3f4123a..1c55d21 100644 --- a/patchset.Get.go +++ b/patchset.Get.go @@ -8,6 +8,13 @@ import ( // retrieves current patches from forge func (f *Forge) GetPatches() error { + /* + defer func() { + if r := recover(); r != nil { + log.Warn("PANIC ecovered in loadUpstream()", r) + } + }() + */ url := f.forgeURL + "GetPatchsets" log.Info("GetPatchsets() url", url) body, err := f.HttpPost(url, nil) @@ -29,6 +36,14 @@ func (f *Forge) GetPatches() error { } func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) { + /* + defer func() { + if r := recover(); r != nil { + log.Warn("PANIC ecovered in loadUpstream()", r) + } + }() + */ + var foundnew bool all := psets.All() for all.Scan() {