From 932f8146133ef59e7d64632c4c865b84a4cb65a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Wed, 13 Jun 2018 08:34:39 +0200 Subject: [PATCH] changes to gologger --- middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } } -- 1.8.1.2