summary refs log tree commit diff stats
path: root/svc/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'svc/http.go')
-rw-r--r--svc/http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/svc/http.go b/svc/http.go
index d39ab4e..95cb613 100644
--- a/svc/http.go
+++ b/svc/http.go
@@ -62,12 +62,12 @@ func ipMiddleware(hop http.Handler) http.Handler {
 func log200(r *http.Request) {
 	useragent := r.Header["User-Agent"]
 	uip := getIPFromCtx(r.Context())
-	log.Printf("*** %v :: 200 :: %v %v :: %v\n", uip, r.Method, r.URL, useragent)
+	reqLog.Printf("*** %v :: 200 :: %v %v :: %v\n", uip, r.Method, r.URL, useragent)
 }
 
 func errHTTP(w http.ResponseWriter, r *http.Request, err error, code int) {
 	useragent := r.Header["User-Agent"]
 	uip := getIPFromCtx(r.Context())
-	log.Printf("*** %v :: %v :: %v %v :: %v :: %v\n", uip, code, r.Method, r.URL, useragent, err.Error())
+	reqLog.Printf("*** %v :: %v :: %v %v :: %v :: %v\n", uip, code, r.Method, r.URL, useragent, err.Error())
 	http.Error(w, fmt.Sprintf("Error %v: %v", code, err.Error()), code)
 }