diff --git a/pkg/api/apiCall.go b/pkg/api/apiCall.go index 9e7a6b0..dbbfa79 100644 --- a/pkg/api/apiCall.go +++ b/pkg/api/apiCall.go @@ -35,12 +35,8 @@ func PostRequest(url string, model any, header http.Header, c echo.Context) ([]b return nil, err, nil } - debug, err := json.Marshal(resp.Body) - - if err == nil { - c.Logger().Debug("Response---") - c.Logger().Debug(string(debug)) - } + c.Logger().Debug("Response---") + c.Logger().Debug(string(data)) return data, nil, resp } @@ -69,12 +65,8 @@ func GetRequest(url string, header http.Header, c echo.Context, args ...string) return nil, err, nil } - debug, err := json.Marshal(resp.Body) - - if err == nil { - c.Logger().Debug("Response---") - c.Logger().Debug(string(debug)) - } + c.Logger().Debug("Response---") + c.Logger().Debug(string(data)) return data, nil, resp }