From dcd8fce59a81bca56961e94fb1625ce601e06e95 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Fri, 8 Nov 2024 10:07:06 +0300 Subject: [PATCH] add log on create account --- remote/accountservice.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/remote/accountservice.go b/remote/accountservice.go index ae1fab7..e6a5556 100644 --- a/remote/accountservice.go +++ b/remote/accountservice.go @@ -96,9 +96,9 @@ func (as *AccountService) CreateAccount(ctx context.Context) (*models.AccountRes if err != nil { return nil, err } - _, err = doCustodialRequest(ctx, req, &r) if err != nil { + log.Printf("Failed to make custodial %s request to endpoint: %s with reason: %s", req.Method, req.URL, err.Error()) return nil, err } @@ -176,7 +176,6 @@ func (as *AccountService) VoucherData(ctx context.Context, address string) (*mod func doRequest(ctx context.Context, req *http.Request, rcpt any) (*api.OKResponse, error) { var okResponse api.OKResponse var errResponse api.ErrResponse - req.Header.Set("Content-Type", "application/json") resp, err := http.DefaultClient.Do(req) if err != nil {