From 526ddd351218798199b6221fad67e1c335ad8542 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Mon, 7 Mar 2016 08:59:48 +0100 Subject: [PATCH] api: server: server: remove redunant debugf Signed-off-by: Antonio Murdaca --- api/server/middleware/debug.go | 2 +- api/server/server.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/api/server/middleware/debug.go b/api/server/middleware/debug.go index 967fe7000f..be7056f6c6 100644 --- a/api/server/middleware/debug.go +++ b/api/server/middleware/debug.go @@ -15,7 +15,7 @@ import ( // DebugRequestMiddleware dumps the request to logger func DebugRequestMiddleware(handler httputils.APIFunc) httputils.APIFunc { return func(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error { - logrus.Debugf("%s %s", r.Method, r.RequestURI) + logrus.Debugf("Calling %s %s", r.Method, r.RequestURI) if r.Method != "POST" { return handler(ctx, w, r, vars) diff --git a/api/server/server.go b/api/server/server.go index 6dea4d3a5c..1379b7372e 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -114,9 +114,6 @@ func (s *HTTPServer) Close() error { func (s *Server) makeHTTPHandler(handler httputils.APIFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { - // log the handler call - logrus.Debugf("Calling %s %s", r.Method, r.URL.Path) - // Define the context that we'll pass around to share info // like the docker-request-id. //