Browse Source

Mock access logs don't show up in non-debug mode

shin- 12 years ago
parent
commit
9159c819c3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      registry/registry_mock_test.go

+ 2 - 2
registry/registry_mock_test.go

@@ -3,10 +3,10 @@ package registry
 import (
 import (
 	"encoding/json"
 	"encoding/json"
 	"fmt"
 	"fmt"
+	"github.com/dotcloud/docker/utils"
 	"github.com/gorilla/mux"
 	"github.com/gorilla/mux"
 	"io"
 	"io"
 	"io/ioutil"
 	"io/ioutil"
-	"log"
 	"net/http"
 	"net/http"
 	"net/http/httptest"
 	"net/http/httptest"
 	"net/url"
 	"net/url"
@@ -96,7 +96,7 @@ func init() {
 
 
 func handlerAccessLog(handler http.Handler) http.Handler {
 func handlerAccessLog(handler http.Handler) http.Handler {
 	logHandler := func(w http.ResponseWriter, r *http.Request) {
 	logHandler := func(w http.ResponseWriter, r *http.Request) {
-		log.Printf("%s \"%s %s\"", r.RemoteAddr, r.Method, r.URL)
+		utils.Debugf("%s \"%s %s\"", r.RemoteAddr, r.Method, r.URL)
 		handler.ServeHTTP(w, r)
 		handler.ServeHTTP(w, r)
 	}
 	}
 	return http.HandlerFunc(logHandler)
 	return http.HandlerFunc(logHandler)