summary refs log tree commit diff stats
path: root/http.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-27 18:00:00 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-27 18:09:13 -0400
commit711012ec003ffe8393f1e41d04eace71cbb5fe4c (patch)
tree8d61e3d1814b34238ff522ac8e098ce89bf9f409 /http.go
parent449d0c14d8b2ec192ddebdc348cd53b6dab8a505 (diff)
downloadgetwtxt-711012ec003ffe8393f1e41d04eace71cbb5fe4c.tar.gz
removed extraneous comments
Diffstat (limited to 'http.go')
-rw-r--r--http.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/http.go b/http.go
index de9eb3b..aaa3a2e 100644
--- a/http.go
+++ b/http.go
@@ -52,21 +52,18 @@ func ipMiddleware(hop http.Handler) http.Handler {
 	})
 }
 
-// log output for 200s
 func log200(r *http.Request) {
 
 	uip := getIPFromCtx(r.Context())
 	log.Printf("*** %v :: 200 :: %v %v\n", uip, r.Method, r.URL)
 }
 
-// log output for 400s
 func log400(w http.ResponseWriter, r *http.Request, err string) {
 	uip := getIPFromCtx(r.Context())
 	log.Printf("*** %v :: 400 :: %v %v :: %v\n", uip, r.Method, r.URL, err)
 	http.Error(w, "400 Bad Request: "+err, http.StatusBadRequest)
 }
 
-// log output for 404s
 func log404(w http.ResponseWriter, r *http.Request, err error) {
 
 	uip := getIPFromCtx(r.Context())
@@ -74,7 +71,6 @@ func log404(w http.ResponseWriter, r *http.Request, err error) {
 	http.Error(w, err.Error(), http.StatusNotFound)
 }
 
-// log output for 500s
 func log500(w http.ResponseWriter, r *http.Request, err error) {
 
 	uip := getIPFromCtx(r.Context())