diff --git a/http.go b/http.go index 83f4beb..b4c8feb 100644 --- a/http.go +++ b/http.go @@ -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) diff --git a/main.go b/main.go index 59822e8..232a783 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ const ( MinWidth = uint(8) MaxWidth = uint(300) - ImgdVersion = "2.8" + ImgdVersion = "2.9.1" ) var ( diff --git a/status.go b/status.go index c1766f0..3ed4d25 100644 --- a/status.go +++ b/status.go @@ -29,7 +29,7 @@ type StatusCollector struct { ImgdMem uint64 // Time in seconds the process has been running for Uptime int64 - // Number of times a request type has been requested. + // Number of times an error has been recorded. Errored map[string]uint // Number of times a request type has been requested. Requested map[string]uint