4194: use go fmt to replace spaces with tabs.
[arvados.git] / services / keepstore / keepstore.go
index c899d5166a6f9871ffbd7c18c187eb0cc5df9ad6..75b6c4014dc3e4afdabc3efebc22c7ec8862f517 100644 (file)
@@ -262,9 +262,11 @@ func main() {
        // Start a round-robin VolumeManager with the volumes we have found.
        KeepVM = MakeRRVolumeManager(goodvols)
 
-       // Tell the built-in HTTP server to direct all requests to the REST
-       // router.
-       http.Handle("/", MakeRESTRouter())
+       // Tell the built-in HTTP server to direct all requests to the REST router.
+       loggingRouter := MakeLoggingRESTRouter()
+       http.HandleFunc("/", func(resp http.ResponseWriter, req *http.Request) {
+               loggingRouter.ServeHTTP(resp, req)
+       })
 
        // Set up a TCP listener.
        listener, err := net.Listen("tcp", listen)