mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 08:07:00 -07:00
new: centralized logging and implemented DELETE /api/events route, closes #5
This commit is contained in:
parent
269d7d845b
commit
f1f146d3d7
21 changed files with 144 additions and 184 deletions
|
@ -42,7 +42,6 @@ func NewJSRequest(req *http.Request) JSRequest {
|
|||
func (j *JSRequest) ReadBody() string {
|
||||
raw, err := ioutil.ReadAll(j.req.Body)
|
||||
if err != nil {
|
||||
log.Errorf("Could not read request body: %s", err)
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue