diff --git a/middleware.go b/middleware.go index 410758d..cd58b26 100644 --- a/middleware.go +++ b/middleware.go @@ -42,7 +42,7 @@ func Log(h http.HandlerFunc) http.HandlerFunc { t1 := time.Now() h(w, req) t2 := time.Now() - reqLogger.LogResponse(w, t2.Sub(t1)) + reqLogger.LogResponse(w, req, t2.Sub(t1)) } }