Improve error handling by adding DISCARDED state for events

This commit is contained in:
2013-08-14 07:26:52 -04:00
parent 0c9b4cb057
commit 6bdb81834c
5 changed files with 37 additions and 27 deletions

View File

@ -26,7 +26,6 @@ func SendEvent(globals AsinkGlobals, event *asink.Event) error {
if err != nil {
return err
}
fmt.Println(string(b))
//actually make the request
resp, err := http.Post(url, "application/json", bytes.NewReader(b))