Rename RequestsBlocked to ClientErrors and remove special cases from tracker code

This commit is contained in:
Justin Li
2014-07-24 18:01:26 -04:00
parent 02f67b4259
commit b08195aeef
4 changed files with 9 additions and 28 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func (s *Server) stats(w http.ResponseWriter, r *http.Request, p httprouter.Para
func handleError(err error, w *Writer) (int, error) {
if _, ok := err.(*models.ClientError); ok {
w.WriteError(err)
stats.RecordEvent(stats.BlockedRequest)
stats.RecordEvent(stats.ClientError)
return http.StatusOK, nil
}