Add logging to the status request

This commit is contained in:
Marc Di Luzio 2020-05-30 23:18:05 +01:00
parent 5d250edb6b
commit b462ceb104

View file

@ -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,
}