From b462ceb104e9817d6affbdbfc0b11e86324aab4b Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sat, 30 May 2020 23:18:05 +0100 Subject: [PATCH] Add logging to the status request --- cmd/rove-server/router.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/rove-server/router.go b/cmd/rove-server/router.go index adc39e0..dbecf4b 100644 --- a/cmd/rove-server/router.go +++ b/cmd/rove-server/router.go @@ -2,6 +2,7 @@ package main import ( "encoding/json" + "fmt" "net/http" "github.com/gorilla/mux" @@ -20,6 +21,8 @@ func NewRouter() (router *mux.Router) { // HandleStatus handles HTTP requests to the /status endpoint func HandleStatus(w http.ResponseWriter, r *http.Request) { + fmt.Printf("%s\t%s", r.Method, r.RequestURI) + var status = rove.ServerStatus{ Ready: true, }