summaryrefslogtreecommitdiff
path: root/patchset.Get.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-04 00:14:44 -0500
committerJeff Carr <[email protected]>2025-09-04 00:14:44 -0500
commit111c67e97573c4a8714a3f124043cfc3e54b9300 (patch)
treebdd63ad11bfb6b0d7416cd864d18d87920c2f308 /patchset.Get.go
parent961ca8f41e1e8bd3aecb979c346c5205386fc55a (diff)
debugging panic()
Diffstat (limited to 'patchset.Get.go')
-rw-r--r--patchset.Get.go15
1 files changed, 15 insertions, 0 deletions
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() {