Keep statistics on the number of events being sent to the server

This commit is contained in:
2013-09-04 23:51:28 -04:00
parent 11b57cda66
commit 90533c9e2d
2 changed files with 11 additions and 1 deletions

View File

@ -209,7 +209,9 @@ func ProcessLocalEvent(globals AsinkGlobals, event *asink.Event) {
}
//finally, send it off to the server
StatStartSending()
err = SendEvent(globals, event)
StatStopSending()
if err != nil {
panic(err) //TODO handle sensibly
}