Skip to content

Commit

Permalink
Record stats for InternalServerError
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeHandle committed Oct 10, 2015
1 parent 3a26ff2 commit f27ef2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (router *Router) Serve(resource string) {
w.WriteHeader(http.StatusInternalServerError)
fmt.Fprintf(w, "500 internal server error")
log.Info(r.RemoteAddr + " " + r.RequestURI + " 500 " + skin.Skin.Source)
stats.Errored("InternalServerError")
return
}
router.writeType(vars["extension"], skin, w)
Expand Down

0 comments on commit f27ef2c

Please sign in to comment.