Add LoggingHTTPHandler for logging REST requests at the server-side

This commit is contained in:
Martynas Pumputis committed 2016-05-03 15:40:37 +01:00
1 parent f08148cabb
commit 9dd1fbba39
2 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -293,7 +293,7 @@ func main() {
}
router.HandleHTTP(muxRouter)
HandleHTTP(muxRouter, version, router, allocator, defaultSubnet, ns, dnsserver)
http.Handle("/", muxRouter)
http.Handle("/", common.LoggingHTTPHandler(muxRouter))
Log.Println("Listening for HTTP control messages on", httpAddr)
go listenAndServeHTTP(httpAddr, muxRouter)
}