From 3ea532776254111ac9a971f147dda8414f0b5872 Mon Sep 17 00:00:00 2001 From: "Stephen McQuay (smcquay)" Date: Wed, 7 Feb 2018 15:29:28 -0800 Subject: [PATCH] disable health logging --- main.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 802fe08..c7f1aed 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "os" ) -const version = "v0.0.10" +const version = "v0.0.11" type v struct { Hostname string `json:"hostname"` @@ -35,13 +35,11 @@ func main() { fmt.Fprintf(w, "%v\n", line) } }) - http.HandleFunc("/live", func(w http.ResponseWriter, req *http.Request) { - log.Printf("live") - }) - http.HandleFunc("/ready", func(w http.ResponseWriter, req *http.Request) { - log.Printf("ready") - }) + http.HandleFunc("/live", ok) + http.HandleFunc("/ready", ok) if err := http.ListenAndServe(":8080", nil); err != nil { log.Fatalf("listen and serve: %v", err) } } + +func ok(w http.ResponseWriter, req *http.Request) {}