logs fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user