Excessive prints... Printscess?
This commit is contained in:
parent
460b0a8aa6
commit
e301c1feeb
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user