X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a3787ef83a0538097fb6f802f675be740a241ebc..97a2555a220d424b029d39b6b6e62f28bc3bc148:/services/keepstore/keepstore.go diff --git a/services/keepstore/keepstore.go b/services/keepstore/keepstore.go index c899d5166a..75b6c4014d 100644 --- a/services/keepstore/keepstore.go +++ b/services/keepstore/keepstore.go @@ -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)