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
|
return nil, err, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
debug, err := json.Marshal(resp.Body)
|
c.Logger().Debug("Response---")
|
||||||
|
c.Logger().Debug(string(data))
|
||||||
if err == nil {
|
|
||||||
c.Logger().Debug("Response---")
|
|
||||||
c.Logger().Debug(string(debug))
|
|
||||||
}
|
|
||||||
|
|
||||||
return data, nil, resp
|
return data, nil, resp
|
||||||
}
|
}
|
||||||
@@ -69,12 +65,8 @@ func GetRequest(url string, header http.Header, c echo.Context, args ...string)
|
|||||||
return nil, err, nil
|
return nil, err, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
debug, err := json.Marshal(resp.Body)
|
c.Logger().Debug("Response---")
|
||||||
|
c.Logger().Debug(string(data))
|
||||||
if err == nil {
|
|
||||||
c.Logger().Debug("Response---")
|
|
||||||
c.Logger().Debug(string(debug))
|
|
||||||
}
|
|
||||||
|
|
||||||
return data, nil, resp
|
return data, nil, resp
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user