Procházet zdrojové kódy

fmt: Clean up log statement

jamesread před 2 roky
rodič
revize
8f1dfffa49
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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)
 		promProxy := httputil.NewSingleHostReverseProxy(promURL)
 
 
 		mux.HandleFunc("/metrics", func(w http.ResponseWriter, r *http.Request) {
 		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)
 			promProxy.ServeHTTP(w, r)
 		})
 		})
 	}
 	}