From aa33686b780c11819842d4bcca686ba08eae888d Mon Sep 17 00:00:00 2001 From: LukeHandle Date: Sat, 10 Oct 2015 20:09:56 +0100 Subject: [PATCH 1/3] Bump version number --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ( From 3a26ff23863d1cad6d49e142339d6f45545fc784 Mon Sep 17 00:00:00 2001 From: LukeHandle Date: Sat, 10 Oct 2015 20:25:55 +0100 Subject: [PATCH 2/3] Typo in comment regarding status error --- status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From f27ef2ce9355066dbd4fa7bdcbbb6cb2b66e2bfc Mon Sep 17 00:00:00 2001 From: LukeHandle Date: Sat, 10 Oct 2015 20:30:35 +0100 Subject: [PATCH 3/3] Record stats for InternalServerError --- http.go | 1 + 1 file changed, 1 insertion(+) 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)