소스 검색

fmt: Clean up log statement

jamesread 2 년 전
부모
커밋
8f1dfffa49
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)
 		})
 	}