summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-31 04:38:01 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-31 04:38:01 -0400
commit27f92d888cb9cc675ad05511287d34cce85d7650 (patch)
tree68ec8d34cc4fc5a0ca8ba46cd7827a7e1fcb4c9c
parent35965092fa3988844f3ed45627cd0d37a6371ae3 (diff)
downloadgetwtxt-27f92d888cb9cc675ad05511287d34cce85d7650.tar.gz
compile error
-rw-r--r--http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.go b/http.go
index 725f4c5..578b898 100644
--- a/http.go
+++ b/http.go
@@ -61,7 +61,7 @@ func log200(r *http.Request) {
 
 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.Error())
+	log.Printf("*** %v :: 400 :: %v %v :: %v\n", uip, r.Method, r.URL, err)
 	http.Error(w, "400 Bad Request: "+err, http.StatusBadRequest)
 }