diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-31 04:38:01 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-31 04:38:01 -0400 |
commit | 27f92d888cb9cc675ad05511287d34cce85d7650 (patch) | |
tree | 68ec8d34cc4fc5a0ca8ba46cd7827a7e1fcb4c9c /http.go | |
parent | 35965092fa3988844f3ed45627cd0d37a6371ae3 (diff) | |
download | getwtxt-27f92d888cb9cc675ad05511287d34cce85d7650.tar.gz |
compile error
Diffstat (limited to 'http.go')
-rw-r--r-- | http.go | 2 |
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) } |