Merge pull request #5147 from a-robinson/func

Re-add the defer statements around the monitor() calls in the apiserver.
This commit is contained in:
Daniel Smith
2015-03-06 15:31:45 -08:00
5 changed files with 11 additions and 8 deletions

View File

@@ -66,7 +66,7 @@ func (h *WatchHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
var apiResource string
var httpCode int
reqStart := time.Now()
defer monitor("watch", verb, apiResource, httpCode, reqStart)
defer monitor("watch", &verb, &apiResource, &httpCode, reqStart)
if req.Method != "GET" {
notFound(w, req)