Excessive prints... Printscess?

This commit is contained in:
Steven Polley 2018-08-25 18:19:26 -06:00
parent 460b0a8aa6
commit e301c1feeb
1 changed files with 0 additions and 4 deletions

View File

@ -183,16 +183,12 @@ func (cw *Site) PostTimeEntry(timeEntry *TimeEntryPost) (*TimeEntry, error) {
return nil, fmt.Errorf("could not marshal timeEntry struct to json bytes: %s", err)
}
fmt.Println(string(js))
req := cw.NewRequest("/time/entries", "POST", js)
err = req.Do()
if err != nil {
return nil, fmt.Errorf("post request failed for %s: %s", req.RestAction, err)
}
fmt.Println(string(req.Body))
te := &TimeEntry{}
err = json.Unmarshal(req.Body, te)
if err != nil {