Ver código fonte

fmt: Clean up log statement

jamesread 2 anos atrás
pai
commit
8f1dfffa49
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      internal/httpservers/singleFrontend.go

+ 2 - 1
internal/httpservers/singleFrontend.go

@@ -67,7 +67,8 @@ func StartSingleHTTPFrontend(cfg *config.Config) {
 		promProxy := httputil.NewSingleHostReverseProxy(promURL)
 
 		mux.HandleFunc("/metrics", func(w http.ResponseWriter, r *http.Request) {
-			log.Debugf("prom req: %q", r.URL)
+			logDebugRequest(cfg, "prom", r)
+
 			promProxy.ServeHTTP(w, r)
 		})
 	}