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 -3
View File
@@ -23,10 +23,8 @@ import (
"io/ioutil"
"log"
"net/http"
"os"
"strings"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -113,5 +111,6 @@ func (executor *Executor) Serve(port int) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
executor.ndm.Run(ctx)
log.Fatal(http.ListenAndServe(address, handlers.LoggingHandler(os.Stdout, r)))
r.Use(fission.LoggingMiddleware)
log.Fatal(http.ListenAndServe(address, r))
}