This commit is contained in:
kandrusyak
2023-09-25 22:20:19 +03:00
parent 7d3c4a26fe
commit 3edd2f8d93

View File

@@ -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(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(string(data))
return data, nil, resp
}