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
+3 -2
View File
@@ -26,7 +26,6 @@ import (
"time"
"github.com/fission/fission"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
_ "github.com/graymeta/stow/local"
log "github.com/sirupsen/logrus"
@@ -169,7 +168,9 @@ func (ss *StorageService) Start(port int) {
r.HandleFunc("/healthz", ss.healthHandler).Methods("GET")
address := fmt.Sprintf(":%v", port)
log.Fatal(http.ListenAndServe(address, handlers.LoggingHandler(os.Stdout, r)))
r.Use(fission.LoggingMiddleware)
log.Fatal(http.ListenAndServe(address, r))
}
func RunStorageService(storageType StorageType, storagePath string, containerName string, port int, enablePruner bool) *StorageService {