From 4b78407d3f06b82e7a6f34911fa5b45b833cfeea Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 7 Sep 2025 19:16:01 -0500 Subject: [PATCH] store the errors --- httpRequest.proto | 1 + post.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/httpRequest.proto b/httpRequest.proto index 0a1a1f5..cc49b87 100644 --- a/httpRequest.proto +++ b/httpRequest.proto @@ -18,6 +18,7 @@ message HttpRequest { // HttpRequest repres bytes body = 9; // The request body as raw bytes. string namespace = 10; // When the body is a pb (always!). This is the pb namespace ("go.wit.com/lib/protobuf/virtpb") google.protobuf.Timestamp ctime = 11; // create time of the patch + repeated string errors = 12; // When the body is a pb (always!). This is the pb namespace ("go.wit.com/lib/protobuf/virtpb") } message HttpRequests { // `autogenpb:marshal` `autogenpb:mutex` diff --git a/post.go b/post.go index 8116ea7..753af74 100644 --- a/post.go +++ b/post.go @@ -9,6 +9,8 @@ import ( "net/url" "os" "os/user" + + "go.wit.com/log" ) func HttpPost(baseURL string, route string, data []byte) ([]byte, error) { @@ -19,6 +21,7 @@ func HttpPost(baseURL string, route string, data []byte) ([]byte, error) { var err error var req *http.Request + log.Info("httppb.HttpPost to", finalURL.String()) req, err = http.NewRequest(http.MethodPost, finalURL.String(), bytes.NewBuffer(data)) if req == nil { return nil, err