Delete healthz log (#525)

Silencing the healthz logs.
This commit is contained in:
smruthi2187
2018-03-02 15:50:48 -08:00
committed by GitHub
parent d852ddd91c
commit a3826046a5
6 changed files with 25 additions and 11 deletions
+2 -2
View File
@@ -24,7 +24,6 @@ import (
"strconv"
"strings"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"
kerrors "k8s.io/apimachinery/pkg/api/errors"
@@ -209,5 +208,6 @@ func (api *API) Serve(port int) {
address := fmt.Sprintf(":%v", port)
log.WithFields(log.Fields{"port": port}).Info("Server started")
log.Fatal(http.ListenAndServe(address, handlers.LoggingHandler(os.Stdout, r)))
r.Use(fission.LoggingMiddleware)
log.Fatal(http.ListenAndServe(address, r))
}