From 5e1326a931e8a852e502a5cd1ac020f5cf407d00 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 17 Dec 2015 13:50:01 -0500 Subject: [PATCH] Log request body size. No issue # --- services/keepstore/logging_router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/keepstore/logging_router.go b/services/keepstore/logging_router.go index a97f271327..9edfb6e69d 100644 --- a/services/keepstore/logging_router.go +++ b/services/keepstore/logging_router.go @@ -65,6 +65,6 @@ func (loggingRouter *LoggingRESTRouter) ServeHTTP(resp http.ResponseWriter, req tTotal := now.Sub(t0) tLatency := loggingWriter.sentHdr.Sub(t0) tResponse := now.Sub(loggingWriter.sentHdr) - log.Printf("[%s] %s %s %.6fs %.6fs %.6fs %d %d \"%s\"", req.RemoteAddr, req.Method, req.URL.Path[1:], tTotal.Seconds(), tLatency.Seconds(), tResponse.Seconds(), loggingWriter.Status, loggingWriter.Length, statusText) + log.Printf("[%s] %s %s %d %.6fs %.6fs %.6fs %d %d \"%s\"", req.RemoteAddr, req.Method, req.URL.Path[1:], req.ContentLength, tTotal.Seconds(), tLatency.Seconds(), tResponse.Seconds(), loggingWriter.Status, loggingWriter.Length, statusText) } -- 2.30.2