1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

api: server: server: remove redunant debugf

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-03-07 08:59:48 +01:00
parent 86ba0e29f5
commit 526ddd3512
2 changed files with 1 additions and 4 deletions

View file

@ -15,7 +15,7 @@ import (
// DebugRequestMiddleware dumps the request to logger // DebugRequestMiddleware dumps the request to logger
func DebugRequestMiddleware(handler httputils.APIFunc) httputils.APIFunc { func DebugRequestMiddleware(handler httputils.APIFunc) httputils.APIFunc {
return func(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error { 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" { if r.Method != "POST" {
return handler(ctx, w, r, vars) return handler(ctx, w, r, vars)

View file

@ -114,9 +114,6 @@ func (s *HTTPServer) Close() error {
func (s *Server) makeHTTPHandler(handler httputils.APIFunc) http.HandlerFunc { func (s *Server) makeHTTPHandler(handler httputils.APIFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) { 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 // Define the context that we'll pass around to share info
// like the docker-request-id. // like the docker-request-id.
// //